projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[cascardo/linux.git]
/
tools
/
net
/
bpf_jit_disasm.c
diff --git
a/tools/net/bpf_jit_disasm.c
b/tools/net/bpf_jit_disasm.c
index
5b32413
..
544b05a
100644
(file)
--- a/
tools/net/bpf_jit_disasm.c
+++ b/
tools/net/bpf_jit_disasm.c
@@
-98,6
+98,9
@@
static char *get_klog_buff(unsigned int *klen)
char *buff;
len = klogctl(CMD_ACTION_SIZE_BUFFER, NULL, 0);
+ if (len < 0)
+ return NULL;
+
buff = malloc(len);
if (!buff)
return NULL;