mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
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: 735c631ae9
('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>
This commit is contained in:
parent
f242d93ae9
commit
da1f857be6
1 changed files with 2 additions and 1 deletions
|
@ -1024,7 +1024,8 @@ static int __init ib_core_init(void)
|
|||
goto err_mad;
|
||||
}
|
||||
|
||||
if (ib_add_ibnl_clients()) {
|
||||
ret = ib_add_ibnl_clients();
|
||||
if (ret) {
|
||||
pr_warn("Couldn't register ibnl clients\n");
|
||||
goto err_sa;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue