]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit97dbe46c0c11a744596f65c9026841d3230a538f
treeff755921037506eae0f5204dad52815d5e8c9b30
parenta8384652af76e5e7c06ff06cffc4124d13980b55
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