]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
IB/hifi1: add a null check of kzalloc_node in hfi1_ipoib_txreq_init
authorKang Chen <void0red@gmail.com>
Mon, 27 Feb 2023 10:02:12 +0000 (18:02 +0800)
committerLeon Romanovsky <leon@kernel.org>
Mon, 13 Mar 2023 11:51:28 +0000 (13:51 +0200)
commitc874ad879c2f29ebe040a34b974389875c0d81eb
tree630f97e91a15ce8f077d70d3645f912f87c6a11d
parenteeac8ede17557680855031c6f305ece2378af326
IB/hifi1: add a null check of kzalloc_node in hfi1_ipoib_txreq_init

kzalloc_node may fails, check it and do the cleanup.

Fixes: b1151b74ff68 ("IB/hfi1: Fix alloc failure with larger txqueuelen")
Signed-off-by: Kang Chen <void0red@gmail.com>
Link: https://lore.kernel.org/r/20230227100212.910820-1-void0red@gmail.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hfi1/ipoib_tx.c