Commit c20154d
committed
RDMA/cxgb4: Added NULL check for lookup_atid
JIRA: https://issues.redhat.com/browse/RHEL-61394
commit e766e6a
Author: Mikhail Lobanov <m.lobanov@rosalinux.ru>
Date: Thu Sep 12 10:58:39 2024 -0400
RDMA/cxgb4: Added NULL check for lookup_atid
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: cfdda9d ("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: Kamal Heib <kheib@redhat.com>1 parent 0db7b3c commit c20154d
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1222 | 1222 | | |
1223 | 1223 | | |
1224 | 1224 | | |
| 1225 | + | |
| 1226 | + | |
1225 | 1227 | | |
1226 | 1228 | | |
1227 | 1229 | | |
| |||
2279 | 2281 | | |
2280 | 2282 | | |
2281 | 2283 | | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
2282 | 2287 | | |
2283 | 2288 | | |
2284 | 2289 | | |
| |||
0 commit comments