]> git.karo-electronics.de Git - karo-tx-linux.git/commit
WAN: flush tx_queue in hdlc_ppp to prevent panic on rmmod hw_driver.
authorKrzysztof Halasa <khc@pm.waw.pl>
Wed, 14 Apr 2010 14:09:52 +0000 (14:09 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 May 2010 22:03:02 +0000 (15:03 -0700)
commit490b9c7aa0a31294aaa2b445c59cfb95979b7f04
tree4d6b4099b40d256584554f78bd1b203de9cc9b5b
parent5049664c319adc3f8d136c2fc4bf9d57c33ffe57
WAN: flush tx_queue in hdlc_ppp to prevent panic on rmmod hw_driver.

[ Upstream commit 31f634a63de7068c6a5dcb0d7b09b24b61a5cf88 ]

tx_queue is used as a temporary queue when not allowed to queue skb
directly to the hw device driver (which may sleep). Most paths flush
it before returning, but ppp_start() currently cannot. Make sure we
don't leave skbs pointing to a non-existent device.

Thanks to Michael Barkowski for reporting this problem.

Signed-off-by: Krzysztof HaƂasa <khc@pm.waw.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wan/hdlc_ppp.c