]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[netdrvr] hso: dev_kfree_skb crash fix
authorDenis Joseph Barrow <D.Barow@option.com>
Wed, 20 Aug 2008 01:07:55 +0000 (18:07 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 27 Aug 2008 09:36:47 +0000 (05:36 -0400)
Fixes dev_kfree_skb happening too many times when hso_start_net_device
is called from hso_resume.

Signed-off-by: Denis Joseph Barrow <D.Barow@option.com>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/usb/hso.c

index 1131e10fb6aeef095c9b340ea1e41eb2027f487e..6e42b5a8c22bb540ba9827f72ee482893c1972d4 100644 (file)
@@ -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)