Commit c213f286 authored by Denis Joseph Barrow's avatar Denis Joseph Barrow Committed by Jeff Garzik

[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: default avatarDenis Joseph Barrow <D.Barow@option.com>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 95eacee8
...@@ -2613,6 +2613,7 @@ static int hso_resume(struct usb_interface *iface) ...@@ -2613,6 +2613,7 @@ static int hso_resume(struct usb_interface *iface)
"Transmitting lingering data\n"); "Transmitting lingering data\n");
hso_net_start_xmit(hso_net->skb_tx_buf, hso_net_start_xmit(hso_net->skb_tx_buf,
hso_net->net); hso_net->net);
hso_net->skb_tx_buf = NULL;
} }
result = hso_start_net_device(network_table[i]); result = hso_start_net_device(network_table[i]);
if (result) if (result)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment