]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Move spinlocks and work initalizations to beginning of init_netdev
authorEugenia Emantayev <eugenia@mellanox.com>
Mon, 27 Oct 2014 09:37:46 +0000 (11:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Oct 2014 21:18:01 +0000 (17:18 -0400)
commit6e42f9f0e42ea51d2ec9c002d970d3bee9b63a79
tree1ece44e291837c2c1ee497796f24035dca9fad70
parentc6e516fb48459abdb61f8a88c1b33c835591a94d
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>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c