]> git.baikalelectronics.ru Git - kernel.git/commit
IB/{cm, umad}: Handle av init error
authorParav Pandit <parav@mellanox.com>
Tue, 14 Nov 2017 12:52:13 +0000 (14:52 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Dec 2017 22:37:10 +0000 (15:37 -0700)
commite2b3686a4ce1204a4e8e0f9b78f3c5d79c74a5af
tree9e6005a7f721c5ed7fc091aa1a6574d5a4610aa1
parent749babdd95bb7ee59960e40a47e11caf9cf0b298
IB/{cm, umad}: Handle av init error

cm_init_av_for_response depends on ib_init_ah_from_wc() whose return
status is ignored.
ib_init_ah_from_wc() can fail and its return status should be handled as
done in this patch.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cm.c
drivers/infiniband/core/user_mad.c