projects
/
linux-2.6-block.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
[linux-2.6-block.git]
/
arch
/
mips
/
net
/
bpf_jit.c
diff --git
a/arch/mips/net/bpf_jit.c
b/arch/mips/net/bpf_jit.c
index d1b7bd09253a9698abebd54711cbd62071fb1de0..39e7b472f0d8b103197d904550a3db150c861051 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;