]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/bnxt_re: Remove unpaired rtnl unlock in bnxt_re_dev_init()
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Mon, 16 Aug 2021 08:55:31 +0000 (16:55 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 19 Aug 2021 17:48:09 +0000 (14:48 -0300)
commitf08c97b9a7a36b81e3666d3e6f99c59f09cfb0c2
tree34187995c14fa6872c6ac86e149dac3f791b05b7
parent668b7b2d319841ac494d41cdba65615d3724c331
RDMA/bnxt_re: Remove unpaired rtnl unlock in bnxt_re_dev_init()

The fixed commit removes all rtnl_lock() and rtnl_unlock() calls in
function bnxt_re_dev_init(), but forgets to remove a rtnl_unlock() in the
error handling path of bnxt_re_register_netdev(), which may cause a
deadlock. This bug is suggested by a static analysis tool.

Fixes: 4a0ac9879110 ("RDMA/bnxt_re: Refactor device add/remove functionalities")
Link: https://lore.kernel.org/r/20210816085531.12167-1-dinghao.liu@zju.edu.cn
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/bnxt_re/main.c