From: Denis Joseph Barrow Date: Wed, 20 Aug 2008 01:07:55 +0000 (-0700) Subject: [netdrvr] hso: dev_kfree_skb crash fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c213f286f2cf6590f83f541f66a625ee8d20c6f4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 1131e10fb6ae..6e42b5a8c22b 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)