]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
RDMA/bnxt_re: Fix error handling in probe failure path
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Thu, 10 Aug 2023 04:44:36 +0000 (21:44 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 10 Aug 2023 19:35:54 +0000 (16:35 -0300)
commit5ac8480ae4d01f0ca5dfd561884424046df2478a
tree2abbcc1259dc8f07f72764b0e96b2395182424ba
parent5363fc488da579923edf6a2fdca3d3b651dd800b
RDMA/bnxt_re: Fix error handling in probe failure path

During bnxt_re_dev_init(), when bnxt_re_setup_chip_ctx() fails unregister
with L2 first before bailing out probe.

Fixes: ae8637e13185 ("RDMA/bnxt_re: Add chip context to identify 57500 series")
Link: https://lore.kernel.org/r/1691642677-21369-3-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/bnxt_re/main.c