[ldv-project] [PATCH v2] rdmavt: delete unnecessary NULL check

Leon Romanovsky leon at kernel.org
Tue Mar 14 12:26:07 MSK 2023


On Fri, 03 Mar 2023 15:44:08 +0300, Natalia Petrova wrote:
> 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.
> 
> [...]

Applied, thanks!

[1/1] rdmavt: delete unnecessary NULL check
      https://git.kernel.org/rdma/rdma/c/9b3366ec12f0d7

Best regards,
-- 
Leon Romanovsky <leon at kernel.org>



More information about the ldv-project mailing list