RDMA/cm: Respect returned status of cm_init_av_by_path
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 11 Oct 2018 19:36:10 +0000 (22:36 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:08:32 +0000 (11:08 -0800)
commit9f7a37efdf32f7d13d2151826a4f6198b45fe848
tree4eed84e1beacbbc02d260194a434f03c88e09575
parentbc280cf5299d619feff74fd03f8e4ef3345c251f
RDMA/cm: Respect returned status of cm_init_av_by_path

[ Upstream commit e54b6a3bcd1ec972b25a164bdf495d9e7120b107 ]

Add missing check for failure of cm_init_av_by_path

Fixes: e1444b5a163e ("IB/cm: Fix automatic path migration support")
Reported-by: Slava Shwartsman <slavash@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/core/cm.c