net/mlx4_en: Issue the dump eth statistics command under lock
authorEugenia Emantayev <eugenia@mellanox.com>
Thu, 24 Jan 2013 01:54:14 +0000 (01:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2013 05:13:56 +0000 (00:13 -0500)
commit2d51837fa1ee7ff5c42f34b07dc460daff6afda1
tree6b70bd8aaf3d6098ce7eca54407a886f586c4775
parenta1b1add07fa794974573d93483d68e373edfe7bd
net/mlx4_en: Issue the dump eth statistics command under lock

Performing the DUMP_ETH_STATS firmware command outside the lock leads to kernel
panic when data structures such as RX/TX rings are freed in parallel, e.g when
one changes the mtu or ring sizes.

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