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 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
[cascardo/linux.git]
/
arch
/
mips
/
net
/
bpf_jit.c
diff --git
a/arch/mips/net/bpf_jit.c
b/arch/mips/net/bpf_jit.c
index
d1b7bd0
..
39e7b47
100644
(file)
--- a/
arch/mips/net/bpf_jit.c
+++ b/
arch/mips/net/bpf_jit.c
@@
-1199,7
+1199,7
@@
void bpf_jit_compile(struct bpf_prog *fp)
memset(&ctx, 0, sizeof(ctx));
- ctx.offsets = kcalloc(fp->len, sizeof(*ctx.offsets), GFP_KERNEL);
+ ctx.offsets = kcalloc(fp->len
+ 1
, sizeof(*ctx.offsets), GFP_KERNEL);
if (ctx.offsets == NULL)
return;