diff options
author | Amir Vadai <amirv@mellanox.com> | 2015-07-01 14:31:01 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-07-14 20:20:10 +0300 |
commit | 58e9cc90cda7bc732856a2ad3210328fbc4f6ca2 (patch) | |
tree | 0694dd261c7ff755cd26435a395d9c2654de9ff5 /block | |
parent | 8a7ff14dcb40bade309cd2ad04c746bb1d169c4e (diff) | |
download | linux-58e9cc90cda7bc732856a2ad3210328fbc4f6ca2.tar.xz |
IB/IPoIB: Fix bad error flow in ipoib_add_port()
Error values of ib_query_port() and ib_query_device() weren't propagated
correctly. Because of that, ipoib_add_port() could return NULL value,
which escaped the IS_ERR() check in ipoib_add_one() and we crashed.
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions