]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
cxgb4: fix crash due to manipulating queues before registration
authorDimitris Michailidis <dm@chelsio.com>
Thu, 21 Oct 2010 11:29:55 +0000 (11:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Oct 2010 22:52:30 +0000 (15:52 -0700)
commit8f6d9f40476895571df039b6f1f5230ec7faebad
treef960e7ca556f14aa1f8b6f9dcffb0cd491bb9fad
parent2d3359f8b9e6b3d6339b7e72f8e82275058eb13c
cxgb4: fix crash due to manipulating queues before registration

Before commit "net: allocate tx queues in register_netdevice"
netif_tx_stop_all_queues and related functions could be used between
device allocation and registration but now only after registration.
cxgb4 has such a call before registration and crashes now.  Move it
after register_netdev.

Signed-off-by: Dimitris Michailidis <dm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb4/cxgb4_main.c