net/mlx4_en: Free netdev resources under state lock
authorTariq Toukan <tariqt@mellanox.com>
Tue, 22 Nov 2016 14:20:39 +0000 (16:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Nov 2016 01:18:36 +0000 (20:18 -0500)
commitb6e01232e25629907df9db19f25da7d4e8f5b589
tree433ccf3351703fdd9c45335f72a3a4148d7d594c
parenta4cd0271ead09439fa03ce38fa79654dd1e5484b
net/mlx4_en: Free netdev resources under state lock

Make sure mlx4_en_free_resources is called under the netdev state lock.
This is needed since RCU dereference of XDP prog should be protected.

Fixes: 326fe02d1ed6 ("net/mlx4_en: protect ring->xdp_prog with rcu_read_lock")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reported-by: Sagi Grimberg <sagi@grimberg.me>
CC: Brenden Blanco <bblanco@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c