diff options
author | 2024-09-12 10:58:39 -0400 | |
---|---|---|
committer | 2024-09-16 11:52:19 +0300 | |
commit | e766e6a92410ca269161de059fff0843b8ddd65f (patch) | |
tree | 886ff60c2c4cccaae859fc6ff5788bd5a689110d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | RDMA/hns: Fix ah error counter in sw stat not increasing (diff) | |
download | wireguard-linux-e766e6a92410ca269161de059fff0843b8ddd65f.tar.xz wireguard-linux-e766e6a92410ca269161de059fff0843b8ddd65f.zip |
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: 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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions