aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2020-09-25 16:49:13 +0000
committerSaeed Mahameed <[email protected]>2020-10-01 04:26:31 +0000
commitff7ea04ad579c1f5f5aed73d2d5dc13314d25c75 (patch)
tree61e2957826d78530fe8e8aa6963c1ed79b02f46a /tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
parentnet/mlx5e: Fix a use after free on error in mlx5_tc_ct_shared_counter_get() (diff)
downloadkernel-ff7ea04ad579c1f5f5aed73d2d5dc13314d25c75.tar.gz
kernel-ff7ea04ad579c1f5f5aed73d2d5dc13314d25c75.zip
net/mlx5e: Fix potential null pointer dereference
Calls to kzalloc() and kvzalloc() should be null-checked in order to avoid any potential failures. In this case, a potential null pointer dereference. Fix this by adding null checks for _parse_attr_ and _flow_ right after allocation. Addresses-Coverity-ID: 1497154 ("Dereference before null check") Fixes: c620b772152b ("net/mlx5: Refactor tc flow attributes structure") Signed-off-by: Gustavo A. R. Silva <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c')
0 files changed, 0 insertions, 0 deletions