aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd/commit.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2012-03-14 09:21:44 +0000
committerDavid S. Miller <[email protected]>2012-03-16 09:01:41 +0000
commitb8fbaef586176f6abe0eb7887ddae66e99898b79 (patch)
treede0789276c35e3cb5d55dc858ce6b76a30918efc /fs/jbd/commit.c
parentnet/hyperv: fix erroneous NETDEV_TX_BUSY use (diff)
downloadkernel-b8fbaef586176f6abe0eb7887ddae66e99898b79.tar.gz
kernel-b8fbaef586176f6abe0eb7887ddae66e99898b79.zip
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 <[email protected]> Cc: Inaky Perez-Gonzalez <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions