]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/siw: Release xarray entry
authorLeon Romanovsky <leonro@nvidia.com>
Sun, 9 May 2021 11:41:38 +0000 (14:41 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 10 May 2021 17:06:45 +0000 (14:06 -0300)
commit17952d5258c04768a540700eda2079adc9267d2d
treeddde02b652ed77a94107d1a9814445aff3970140
parent92fee5d0fd93b2bfc71cda045211e224efdbafa3
RDMA/siw: Release xarray entry

The xarray entry is allocated in siw_qp_add(), but release was
missed in case zero-sized SQ was discovered.

Fixes: c666a2f051b3 ("RDMA/siw: Fix handling of zero-sized Read and Receive Queues.")
Link: https://lore.kernel.org/r/f070b59d5a1114d5a4e830346755c2b3f141cde5.1620560472.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/siw/siw_verbs.c