OSDN Git Service

netpoll: Fix missing TXQ unlock and and OOPS.
authorDavid S. Miller <davem@davemloft.net>
Fri, 3 Jan 2014 00:50:52 +0000 (19:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2014 23:28:50 +0000 (15:28 -0800)
commit50ba56ca77a62c3bc36ba9bde7bffecc63c30477
tree65145b4dfd5494de20319b98ba87aaa2a23e3c5c
parente7c28ed53545ee8972baf31c89a4e801be228e99
netpoll: Fix missing TXQ unlock and and OOPS.

[ Upstream commit aca5f58f9ba803ec8c2e6bcf890db17589e8dfcc ]

The VLAN tag handling code in netpoll_send_skb_on_dev() has two problems.

1) It exits without unlocking the TXQ.

2) It then tries to queue a NULL skb to npinfo->txq.

Reported-by: Ahmed Tamrawi <atamrawi@iastate.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/netpoll.c