aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2020-09-02 15:07:50 +0000
committerDaniel Borkmann <[email protected]>2020-09-02 18:31:50 +0000
commit1d6fd78a213ee3874f46bdce083b7a41d208886d (patch)
tree91a4955f728ef00a3f56a33f3d92234658e29bf7 /tools/testing/selftests/bpf/prog_tests
parentxsk: Fix possible segfault at xskmap entry insertion (diff)
downloadkernel-1d6fd78a213ee3874f46bdce083b7a41d208886d.tar.gz
kernel-1d6fd78a213ee3874f46bdce083b7a41d208886d.zip
xsk: Fix null check on error return path
Currently, dma_map is being checked, when the right object identifier to be null-checked is dma_map->dma_pages, instead. Fix this by null-checking dma_map->dma_pages. Fixes: 921b68692abb ("xsk: Enable sharing of dma mappings") Addresses-Coverity-ID: 1496811 ("Logically dead code") Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Björn Töpel <[email protected]> Link: https://lore.kernel.org/bpf/20200902150750.GA7257@embeddedor
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
0 files changed, 0 insertions, 0 deletions