summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorToshiaki Makita <toshiaki.makita1@gmail.com>2019-06-14 17:20:14 +0900
committerDaniel Borkmann <daniel@iogearbox.net>2019-06-15 00:58:47 +0200
commitedabf4d9dd905acd60048ea1579943801e3a4876 (patch)
tree244fb1f75a4b283e801a3ec254fc413a58cb2477 /kernel
parentd4dd153d551634683fccf8881f606fa9f3dfa1ef (diff)
downloadlinux-edabf4d9dd905acd60048ea1579943801e3a4876.tar.bz2
bpf, devmap: Add missing bulk queue free
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/bpf/devmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/bpf/devmap.c b/kernel/bpf/devmap.c
index e001fb1a96b1..a126d95d12de 100644
--- 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);
}