kernel_samsung_a53x/drivers/infiniband/hw
Mikhail Lobanov 7e4385aa6d RDMA/cxgb4: Added NULL check for lookup_atid
[ Upstream commit e766e6a92410ca269161de059fff0843b8ddd65f ]

The lookup_atid() function can return NULL if the ATID is
invalid or does not exist in the identifier table, which
could lead to dereferencing a null pointer without a
check in the `act_establish()` and `act_open_rpl()` functions.
Add a NULL check to prevent null pointer dereferencing.

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

Fixes: cfdda9d76436 ("RDMA/cxgb4: Add driver for Chelsio T4 RNIC")
Signed-off-by: Mikhail Lobanov <m.lobanov@rosalinux.ru>
Link: https://patch.msgid.link/20240912145844.77516-1-m.lobanov@rosalinux.ru
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:26 +01:00
..
bnxt_re bnxt_re: Fix imm_data endianness 2024-11-23 23:20:11 +01:00
cxgb4 RDMA/cxgb4: Added NULL check for lookup_atid 2024-11-23 23:21:26 +01:00
efa
hfi1 IB/hfi1: Fix potential deadlock on &irq_src_lock and &dd->uctxt_lock 2024-11-23 23:20:45 +01:00
hns RDMA/hns: Optimize hem allocation performance 2024-11-23 23:21:26 +01:00
i40iw RDMA/irdma: Prevent zero-length STAG registration 2024-11-18 12:10:54 +01:00
mlx4 RDMA/mlx4: Fix truncated output warning in alias_GUID.c 2024-11-23 23:20:10 +01:00
mlx5 RDMA/mlx5: Add check for srq max_sge attribute 2024-11-19 14:19:09 +01:00
mthca RDMA/usnic: Silence uninitialized symbol smatch warnings 2024-11-18 12:12:38 +01:00
ocrdma
qedr RDMA/qedr: Fix qedr_create_user_qp error flow 2024-11-18 22:25:39 +01:00
qib
usnic
vmw_pvrdma
Makefile