android_kernel_motorola_sm6375/drivers/infiniband
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mikhail Lobanov 4e1fe68d69 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: cfdda9d764 ("RDMA/cxgb4: Add driver for Chelsio T4 RNIC")
Signed-off-by: Mikhail Lobanov <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2024-11-08 16:20:32 +01:00
..
core RDMA/iwcm: Fix WARNING:at_kernel/workqueue.c:#check_flush_dependency 2024-11-08 16:20:31 +01:00
hw RDMA/cxgb4: Added NULL check for lookup_atid 2024-11-08 16:20:32 +01:00
sw RDMA/rxe: Don't set BTH_ACK_MASK for UC or UD QPs 2024-08-19 05:33:33 +02:00
ulp RDMA/IPoIB: Fix format truncation compilation errors 2024-06-16 13:28:40 +02:00
Kconfig
Makefile