linux/drivers/infiniband
Nikita Zhandarovich ef42520240 RDMA/cxgb4: add null-ptr-check after ip_dev_find()
ip_dev_find() may return NULL and assign it to pdev which is
dereferenced later.
Fix this by checking the return value of ip_dev_find() for NULL
similar to the way it is done with other instances of said function.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 1cab775c3e ("RDMA/cxgb4: Fix LE hash collision bug for passive open connection")
Signed-off-by: Nikita Zhandarovich <n.zhandarovich@fintech.ru>
Link: https://lore.kernel.org/r/20230201172103.17261-1-n.zhandarovich@fintech.ru
Signed-off-by: Leon Romanovsky <leon@kernel.org>
2023-02-02 10:12:12 +02:00
..
core RDMA/cma: Refactor the inbound/outbound path records process flow 2023-01-10 10:49:50 +02:00
hw RDMA/cxgb4: add null-ptr-check after ip_dev_find() 2023-02-02 10:12:12 +02:00
sw RDMA/rxe: Replace rxe_map and rxe_phys_buf by xarray 2023-01-27 12:14:14 -04:00
ulp Merge branch 'mlx5-next' into HEAD 2023-01-15 12:22:36 +02:00
Kconfig RDMA: Disable IB HW for UML 2022-12-04 15:22:03 +02:00
Makefile