]> git.ipfire.org Git - people/arne_f/kernel.git/commit
IB/umad: Return EIO in case of when device disassociated
authorShay Drory <shayd@nvidia.com>
Mon, 25 Jan 2021 12:13:38 +0000 (14:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Mar 2021 17:22:46 +0000 (18:22 +0100)
commit72710b9deeea12c5ec02a09f4aef737afcf0bd52
tree1a48cd03ee71e1ad7f496be29820193edd25122d
parent6b37e9dda17413cfa22b26f7ca13a46422ae68f5
IB/umad: Return EIO in case of when device disassociated

[ Upstream commit 4fc5461823c9cad547a9bdfbf17d13f0da0d6bb5 ]

MAD message received by the user has EINVAL error in all flows
including when the device is disassociated. That makes it impossible
for the applications to treat such flow differently.

Change it to return EIO, so the applications will be able to perform
disassociation recovery.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Link: https://lore.kernel.org/r/20210125121339.837518-2-leon@kernel.org
Signed-off-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/core/user_mad.c