diff options
| author | Kamal Heib <kheib@redhat.com> | 2026-02-20 17:21:26 -0500 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2026-02-24 04:54:10 -0500 |
| commit | fd80bd7105f88189f47d465ca8cb7d115570de30 (patch) | |
| tree | 91802ff4c5ee919990bc541a63fa7a83c576a5e3 /tools/perf/examples/git@git.tavy.me:linux.git | |
| parent | 3d2e5d12a2eef0ca8a629a422aa593673235c77c (diff) | |
RDMA/ionic: Fix potential NULL pointer dereference in ionic_query_port
The function ionic_query_port() calls ib_device_get_netdev() without
checking the return value which could lead to NULL pointer dereference,
Fix it by checking the return value and return -ENODEV if the 'ndev' is
NULL.
Fixes: 2075bbe8ef03 ("RDMA/ionic: Register device ops for miscellaneous functionality")
Signed-off-by: Kamal Heib <kheib@redhat.com>
Link: https://patch.msgid.link/20260220222125.16973-2-kheib@redhat.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/perf/examples/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
