From: Eric Dumazet Date: Wed, 14 Mar 2012 09:21:44 +0000 (+0000) Subject: wimax/i2400m: fix erroneous NETDEV_TX_BUSY use X-Git-Tag: v3.3~2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8fbaef586176f6abe0eb7887ddae66e99898b79;p=pandora-kernel.git wimax/i2400m: fix erroneous NETDEV_TX_BUSY use A driver start_xmit() method cannot free skb and return NETDEV_TX_BUSY, since caller is going to reuse freed skb. In fact netif_tx_stop_queue() / netif_stop_queue() is needed before returning NETDEV_TX_BUSY or you can trigger a ksoftirqd fatal loop. In case of memory allocation error, only safe way is to drop the packet and return NETDEV_TX_OK Also increments tx_dropped counter Signed-off-by: Eric Dumazet Cc: Inaky Perez-Gonzalez Signed-off-by: David S. Miller --- Reading git-diff-tree failed