RDMA/irdma: Report correct WC error
authorSindhu Devale <sindhu.devale@intel.com>
Tue, 25 Jul 2023 15:54:38 +0000 (10:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:24:06 +0000 (10:24 +0200)
commitd722661362ca473670e45341286d9bb9531f6a5e
tree3065ee46e48c38440b43501963d1b003a7a9e292
parentfe3409cd013cfd10d3e6787b49f33a5dda39cffd
RDMA/irdma: Report correct WC error

[ Upstream commit ae463563b7a1b7d4a3d0b065b09d37a76b693937 ]

Report the correct WC error if a MW bind is performed
on an already valid/bound window.

Fixes: 44d9e52977a1 ("RDMA/irdma: Implement device initialization definitions")
Signed-off-by: Sindhu Devale <sindhu.devale@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Link: https://lore.kernel.org/r/20230725155439.1057-2-shiraz.saleem@intel.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/irdma/hw.c