Skip to content

Commit

Permalink
bpf, devmap: Add missing bulk queue free
Browse files Browse the repository at this point in the history
dev_map_free() forgot to free bulk queue when freeing its entries.

Fixes: 5d053f9 ("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>
  • Loading branch information
Toshiaki Makita authored and Daniel Borkmann committed Jun 14, 2019
1 parent d4dd153 commit edabf4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/bpf/devmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit edabf4d

Please sign in to comment.