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)
commit0c4386ec77cfcd0ccbdbe8c2e67dd3a49b2a4c7f
tree9e6005a7f721c5ed7fc091aa1a6574d5a4610aa1
parentdbb12562f7c2377c210ed6b2e79eda5bfe23c30c
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