]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb3: fix crash due to manipulating queues before registration
authorNishanth Aravamudan <nacc@us.ibm.com>
Wed, 27 Oct 2010 19:06:30 +0000 (19:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Oct 2010 17:27:02 +0000 (10:27 -0700)
commit158ffd5e9ac8ab511fdc269edf6b986a95e6d6d5
tree01e2ccc4f6e2cdc440262cd245ea79af2210efaa
parent30c1fcae791a5090b5c43cbc4cf87ea33f89a046
cxgb3: fix crash due to manipulating queues before registration

Along the same lines as "cxgb4: fix crash due to manipulating queues
before registration" (2308c513aced9cd8d2dc7451cf246c1719e8c31c), 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: Nishanth Aravamudan <nacc@us.ibm.com>
Cc: eric.dumazet@gmail.com
Cc: sonnyrao@us.ibm.com
Cc: Divy Le Ray <divy@chelsio.com>
Cc: Dimitris Michailidis <dm@chelsio.com>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Tested-by: Nishanth Aravamudan <nacc@us.ibm.com>
Acked-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb3/cxgb3_main.c