]> git.baikalelectronics.ru Git - kernel.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)
commit2308c513aced9cd8d2dc7451cf246c1719e8c31c
treef960e7ca556f14aa1f8b6f9dcffb0cd491bb9fad
parent6396fbf77ca0c7587b1beee58e1d002691cf43bd
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