summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_main.c
diff options
context:
space:
mode:
authorSelvin Xavier <selvin.xavier@broadcom.com>2018-10-08 03:28:04 -0700
committerJason Gunthorpe <jgg@mellanox.com>2018-10-16 00:03:51 -0600
commit5df950994934814a8b91f0cf9f653842d2ba082d (patch)
tree9a9681458210283fb1f5c9a42ec339f76a3e77d5 /drivers/infiniband/hw/hns/hns_roce_main.c
parenta08b9e9a705675ba05fa44f0342e2875fd1bda28 (diff)
downloadlinux-5df950994934814a8b91f0cf9f653842d2ba082d.tar.bz2
RDMA/bnxt_re: Avoid resource leak in case the NQ registration fails
In case the NQ alloc/enable fails, free up the already allocated/enabled NQ before reporting failure. Also, track the alloc/enable using proper state checking. Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_main.c')
0 files changed, 0 insertions, 0 deletions