]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: fix an error code in ib_core_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 31 May 2016 16:05:56 +0000 (19:05 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 6 Jun 2016 23:19:07 +0000 (19:19 -0400)
commit07d3a8f272743c576965b07df6fa41a68e764993
treea94ed310233f1fa87a411ab7e6c48657f1c47792
parent2b619feba7cbfbc0180ca17c0e8b179efdfbfff0
IB/core: fix an error code in ib_core_init()

We should return the error code if ib_add_ibnl_clients() fails.  The
current code returns success.

Fixes: 3d3432b12ef5 ('IB/core: Register SA ibnl client during ib_core initialization')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/device.c