From: Denis Joseph Barrow Date: Wed, 20 Aug 2008 01:07:55 +0000 (-0700) Subject: [netdrvr] hso: dev_kfree_skb crash fix X-Git-Tag: v2.6.27-rc5~8^2~4^2~11 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c213f286f2cf6590f83f541f66a625ee8d20c6f4;p=linux-2.6-omap-h63xx.git [netdrvr] hso: dev_kfree_skb crash fix Fixes dev_kfree_skb happening too many times when hso_start_net_device is called from hso_resume. Signed-off-by: Denis Joseph Barrow Cc: Jeff Garzik Signed-off-by: Greg Kroah-Hartman Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index 1131e10fb6a..6e42b5a8c22 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c @@ -2613,6 +2613,7 @@ static int hso_resume(struct usb_interface *iface) "Transmitting lingering data\n"); hso_net_start_xmit(hso_net->skb_tx_buf, hso_net->net); + hso_net->skb_tx_buf = NULL; } result = hso_start_net_device(network_table[i]); if (result)