OSDN Git Service

IB/cm: Handle address handle attribute init error
authorParav Pandit <parav@mellanox.com>
Tue, 14 Nov 2017 12:52:14 +0000 (14:52 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Dec 2017 22:37:11 +0000 (15:37 -0700)
commit5cf3968afcc752fa2db6910e9694120b3373c73b
tree270b87d6b045ab887575d3dec5d70c7b5e7a2572
parent0c4386ec77cfcd0ccbdbe8c2e67dd3a49b2a4c7f
IB/cm: Handle address handle attribute init error

cm_init_av_by_path depends on ib_init_ah_from_path to initialize ah
attribute and ib_init_ah_from_path() can fail, such error should not
be ignored.

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