commit | 207af6c5073021dfe32ae01d342a4dbf08e57515 | [log] [tgz] |
---|---|---|
author | Eugenia Emantayev <eugenia@mellanox.com> | Mon Oct 27 11:37:46 2014 +0200 |
committer | David S. Miller <davem@davemloft.net> | Tue Oct 28 17:18:01 2014 -0400 |
tree | 1ece44e291837c2c1ee497796f24035dca9fad70 | |
parent | f4a36751584bbdfcfd6f3f232e0fe899763434a4 [diff] |
net/mlx4_en: Move spinlocks and work initalizations to beginning of init_netdev Upon failures, destroy_netdev is called, and spinlocks/works must be initialized before calling it. Otherwise kernel panic may occur. 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>