Skip to content

Commit 6bc6699

Browse files
mfijalkoborkmann
authored andcommitted
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: 3945b37 ("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
1 parent c95c34f commit 6bc6699

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎samples/bpf/xdpsock_user.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,5 +1699,7 @@ int main(int argc, char **argv)
16991699

17001700
xdpsock_cleanup();
17011701

1702+
munmap(bufs, NUM_FRAMES * opt_xsk_frame_size);
1703+
17021704
return 0;
17031705
}

0 commit comments

Comments
 (0)