From: Toshiaki Makita Date: Fri, 14 Jun 2019 08:20:14 +0000 (+0900) Subject: bpf, devmap: Add missing bulk queue free X-Git-Tag: v5.4-rc1~783^2~9^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=edabf4d9dd905acd60048ea1579943801e3a4876;p=platform%2Fkernel%2Flinux-rpi.git 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 Acked-by: Jesper Dangaard Brouer Signed-off-by: Daniel Borkmann --- diff --git a/kernel/bpf/devmap.c b/kernel/bpf/devmap.c index e001fb1..a126d95 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); }