mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 13:51:52 +00:00
bpf, devmap: Add missing bulk queue free
dev_map_free() forgot to free bulk queue when freeing its entries.
Fixes: 5d053f9da4
("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>
This commit is contained in:
parent
d4dd153d55
commit
edabf4d9dd
1 changed files with 1 additions and 0 deletions
|
@ -186,6 +186,7 @@ static void dev_map_free(struct bpf_map *map)
|
||||||
if (!dev)
|
if (!dev)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
free_percpu(dev->bulkq);
|
||||||
dev_put(dev->dev);
|
dev_put(dev->dev);
|
||||||
kfree(dev);
|
kfree(dev);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue