aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2024-12-04 15:06:41 +0300
committerJakub Kicinski <[email protected]>2024-12-05 18:45:09 -0800
commit11776cff0b563c8b8a4fa76cab620bfb633a8cb8 (patch)
tree35bac3ea6bac688d5849dda8eac88127e8b89c12 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parentb04d86fff66b15c07505d226431f808c15b1703c (diff)
net/mlx5: DR, prevent potential error pointer dereference
The dr_domain_add_vport_cap() function generally returns NULL on error but sometimes we want it to return ERR_PTR(-EBUSY) so the caller can retry. The problem here is that "ret" can be either -EBUSY or -ENOMEM and if it's and -ENOMEM then the error pointer is propogated back and eventually dereferenced in dr_ste_v0_build_src_gvmi_qpn_tag(). Fixes: 11a45def2e19 ("net/mlx5: DR, Add support for SF vports") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions