diff options
author | Nikita Zhandarovich <[email protected]> | 2023-01-26 10:52:30 -0800 |
---|---|---|
committer | Leon Romanovsky <[email protected]> | 2023-01-29 14:55:54 +0200 |
commit | 5d9745cead1f121974322b94ceadfb4d1e67960e (patch) | |
tree | c0a8998301ecb495a3b8d8c1e77859fa8ff83960 /tools/perf/scripts/python | |
parent | e632291a2dbce45a24cddeb5fe28fe71d724ba43 (diff) |
RDMA/irdma: Fix potential NULL-ptr-dereference
in_dev_get() can return NULL which will cause a failure once idev is
dereferenced in in_dev_for_each_ifa_rtnl(). This patch adds a
check for NULL value in idev beforehand.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 146b9756f14c ("RDMA/irdma: Add connection manager")
Signed-off-by: Nikita Zhandarovich <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Sindhu Devale <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions