]> git.baikalelectronics.ru Git - kernel.git/commit
USB: gadget: fix ethernet gadget crash in gether_setup
authorDmitry Artamonow <mad_soft@inbox.ru>
Thu, 28 Oct 2010 17:31:58 +0000 (10:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Oct 2010 18:47:52 +0000 (11:47 -0700)
commit4d162911e91d6b61c097174f3119dc283770dbd6
tree137b4282105f58a806315c4515dd3c792fcd7d7a
parent99bdbbe3cc363e22da159623457f98650d29b6fc
USB: gadget: fix ethernet gadget crash in gether_setup

Crash is triggered by commit 9befb67129 ("net: allocate tx queues in
register_netdevice"), which moved tx netqueue creation into register_netdev.
So now calling netif_stop_queue() before register_netdev causes an oops.
Move netif_stop_queue() after net device registration to fix crash.

Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/usb/gadget/u_ether.c