]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cxgb4: Check skb value for failure to allocate
authorArtem Chernyshev <artem.chernyshev@red-soft.ru>
Tue, 5 Sep 2023 12:40:48 +0000 (15:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Oct 2023 21:08:49 +0000 (23:08 +0200)
commit3aade96e0c93e5999bfaf77964b9b582f86b4302
tree87b69a3d1babd25be96e154dbc298838f3fb4778
parentf175665385fe9fdd996080806aa67e666475d3d8
RDMA/cxgb4: Check skb value for failure to allocate

[ Upstream commit 8fb8a82086f5bda6893ea6557c5a458e4549c6d7 ]

get_skb() can fail to allocate skb, so check it.

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

Fixes: 5be78ee924ae ("RDMA/cxgb4: Fix LE hash collision bug for active open connection")
Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru>
Link: https://lore.kernel.org/r/20230905124048.284165-1-artem.chernyshev@red-soft.ru
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/cxgb4/cm.c