OSDN Git Service

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)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 16 Oct 2018 14:29:24 +0000 (08:29 -0600)
commite54b6a3bcd1ec972b25a164bdf495d9e7120b107
tree1026814f3e55a2a45634bdd467d5fc731adce6ce
parent4d6e4d12da2c308f8f976d3955c45ee62539ac98
RDMA/cm: Respect returned status of cm_init_av_by_path

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>
drivers/infiniband/core/cm.c