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
bpf: Switch to krealloc_array()
[linux-2.6-block.git]
/
kernel
/
bpf
/
core.c
diff --git
a/kernel/bpf/core.c
b/kernel/bpf/core.c
index a8ca6dd6e614be55f3840bff1bf25801d913cc87..99b8b1c9a248ca43bed5717e40b933a730ce61fc 100644
(file)
--- a/
kernel/bpf/core.c
+++ b/
kernel/bpf/core.c
@@
-850,7
+850,7
@@
int bpf_jit_add_poke_descriptor(struct bpf_prog *prog,
return -EINVAL;
}
- tab = krealloc
(tab, size *
sizeof(*poke), GFP_KERNEL);
+ tab = krealloc
_array(tab, size,
sizeof(*poke), GFP_KERNEL);
if (!tab)
return -ENOMEM;