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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Jan 2014 00:50:52 +0000 (19:50 -0500)
commitaca5f58f9ba803ec8c2e6bcf890db17589e8dfcc
treeff755921037506eae0f5204dad52815d5e8c9b30
parent469bdcefdc47a69028029e792ff1e80680c867b9
netpoll: Fix missing TXQ unlock and and OOPS.

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>
net/core/netpoll.c