mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
samples, bpf: Add missing munmap in xdpsock
We mmap the umem region, but we never munmap it.
Add the missing call at the end of the cleanup.
Fixes: 3945b37a97
("samples/bpf: use hugepages in xdpsock app")
Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Björn Töpel <bjorn.topel@intel.com>
Link: https://lore.kernel.org/bpf/20210303185636.18070-3-maciej.fijalkowski@intel.com
This commit is contained in:
committed by
Daniel Borkmann
parent
c95c34f01b
commit
6bc6699881
@@ -1699,5 +1699,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
xdpsock_cleanup();
|
xdpsock_cleanup();
|
||||||
|
|
||||||
|
munmap(bufs, NUM_FRAMES * opt_xsk_frame_size);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user