diff options
author | Toshiaki Makita <toshiaki.makita1@gmail.com> | 2019-06-14 11:20:14 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-06-15 01:58:47 +0300 |
commit | edabf4d9dd905acd60048ea1579943801e3a4876 (patch) | |
tree | 244fb1f75a4b283e801a3ec254fc413a58cb2477 /kernel/bpf | |
parent | d4dd153d551634683fccf8881f606fa9f3dfa1ef (diff) | |
download | linux-edabf4d9dd905acd60048ea1579943801e3a4876.tar.xz |
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/bpf')
-rw-r--r-- | kernel/bpf/devmap.c | 1 |
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); } |