Skip to content
Commit ef425202 authored by Nikita Zhandarovich's avatar Nikita Zhandarovich Committed by Leon Romanovsky
Browse files

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: 1cab775c ("RDMA/cxgb4: Fix LE hash collision bug for passive open connection")
Signed-off-by: default avatarNikita Zhandarovich <n.zhandarovich@fintech.ru>
Link: https://lore.kernel.org/r/20230201172103.17261-1-n.zhandarovich@fintech.ru


Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent 62712228
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment