commit | f356fcbe12c1174713e83651b630330f8f0f8415 | [log] [tgz] |
---|---|---|
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | Thu Jan 24 01:54:17 2013 +0000 |
committer | David S. Miller <davem@davemloft.net> | Mon Jan 28 00:13:57 2013 -0500 |
tree | 8e5582ef389f5567b764806f175477162415f50c | |
parent | dbd501a80671180a8f3cdf93ca465959031fef18 [diff] |
net/mlx4_core: Return proper error code when __mlx4_add_one fails Returning 0 (success) when in fact we are aborting the load, leads to kernel panic when unloading the module. Fix that by returning the actual error code. Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com> Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>