Commit d495fd37 authored by Duncan Sands's avatar Duncan Sands Committed by Greg Kroah-Hartman

[PATCH] USB speedtouch: speedtouch stability fix fix

It's usually considered stupid to stuff-up like this. However,
for this once we'll just call it "inspired".
parent 8b2855ea
...@@ -709,7 +709,7 @@ static void udsl_atm_dev_close (struct atm_dev *dev) ...@@ -709,7 +709,7 @@ static void udsl_atm_dev_close (struct atm_dev *dev)
PDEBUG ("udsl_atm_dev_close: queue has %u elements\n", instance->sndqueue.qlen); PDEBUG ("udsl_atm_dev_close: queue has %u elements\n", instance->sndqueue.qlen);
PDEBUG ("udsl_atm_dev_close: killing tasklet\n"); PDEBUG ("udsl_atm_dev_close: killing tasklet\n");
tasklet_kill (&instance->receive_tasklet); tasklet_kill (&instance->send_tasklet);
PDEBUG ("udsl_atm_dev_close: freeing instance\n"); PDEBUG ("udsl_atm_dev_close: freeing instance\n");
kfree (instance); kfree (instance);
} }
...@@ -1121,7 +1121,7 @@ static void udsl_usb_disconnect (struct usb_interface *intf) ...@@ -1121,7 +1121,7 @@ static void udsl_usb_disconnect (struct usb_interface *intf)
INIT_LIST_HEAD (&instance->spare_buffers); INIT_LIST_HEAD (&instance->spare_buffers);
instance->current_buffer = NULL; instance->current_buffer = NULL;
tasklet_enable (&instance->receive_tasklet); tasklet_enable (&instance->send_tasklet);
PDEBUG ("udsl_usb_disconnect: freeing senders\n"); PDEBUG ("udsl_usb_disconnect: freeing senders\n");
for (i = 0; i < UDSL_NUMBER_SND_URBS; i++) for (i = 0; i < UDSL_NUMBER_SND_URBS; i++)
......
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