projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4dd153
)
bpf, devmap: Add missing bulk queue free
author
Toshiaki Makita
<toshiaki.makita1@gmail.com>
Fri, 14 Jun 2019 08:20:14 +0000
(17:20 +0900)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Fri, 14 Jun 2019 22:58:47 +0000
(
00:58
+0200)
dev_map_free() forgot to free bulk queue when freeing its entries.
Fixes: 5d053f9da431 ("bpf: devmap prepare xdp frames for bulking")
Signed-off-by: Toshiaki Makita <toshiaki.makita1@gmail.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/devmap.c
patch
|
blob
|
history
diff --git
a/kernel/bpf/devmap.c
b/kernel/bpf/devmap.c
index e001fb1a96b10ba81447dda3eb951e967bae1154..a126d95d12de62f992ad3ce7df0fbb8d2f7408c2 100644
(file)
--- a/
kernel/bpf/devmap.c
+++ b/
kernel/bpf/devmap.c
@@
-186,6
+186,7
@@
static void dev_map_free(struct bpf_map *map)
if (!dev)
continue;
+ free_percpu(dev->bulkq);
dev_put(dev->dev);
kfree(dev);
}