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)
commita3d83276d98886879b5bf7b30b7c29882754e4df
treeddde02b652ed77a94107d1a9814445aff3970140
parenta568814a55a0e82bbc7c7b51333d0c38e8fb5520
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: 661f385961f0 ("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