Files
linux/drivers/infiniband/sw/rdmavt
Natalia Petrova f1a0bad9ea RDMA/rdmavt: Delete unnecessary NULL check
[ Upstream commit b73a0b80c6 ]

There is no need to check 'rdi->qp_dev' for NULL. The field 'qp_dev'
is created in rvt_register_device() which will fail if the 'qp_dev'
allocation fails in rvt_driver_qp_init(). Overwise this pointer
doesn't changed and passed to rvt_qp_exit() by the next step.

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

Fixes: 0acb0cc7ec ("IB/rdmavt: Initialize and teardown of qpn table")
Signed-off-by: Natalia Petrova <n.petrova@fintech.ru>
Link: https://lore.kernel.org/r/20230303124408.16685-1-n.petrova@fintech.ru
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:17:30 +09:00
..
2021-08-25 14:55:49 -03:00
2021-08-25 14:55:49 -03:00
2021-08-25 14:55:49 -03:00
2021-08-25 14:55:49 -03:00
2020-11-17 15:22:07 -04:00
2021-08-25 14:55:49 -03:00
2021-08-25 14:55:49 -03:00
2021-08-25 14:55:49 -03:00
2021-08-25 14:55:49 -03:00
2021-08-25 14:55:49 -03:00
2021-08-25 14:55:49 -03:00
2021-08-25 14:55:49 -03:00
2021-08-25 14:55:49 -03:00
2021-08-25 14:55:49 -03:00
2021-08-25 14:55:49 -03:00
2021-08-25 14:55:49 -03:00
2021-08-25 14:55:49 -03:00
2021-08-25 14:55:49 -03:00
2021-08-25 14:55:49 -03:00
2021-08-25 14:55:49 -03:00
2021-08-25 14:55:49 -03:00