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

[PATCH] USB speedtouch: take ref to USB device

udsl_atm_proc_read may be called after USB disconnect.
parent 4f88b00d
......@@ -703,6 +703,8 @@ static void udsl_atm_dev_close (struct atm_dev *dev)
PDEBUG ("udsl_atm_dev_close: killing tasklet\n");
tasklet_kill (&instance->send_tasklet);
PDEBUG ("udsl_atm_dev_close: freeing USB device\n");
usb_put_dev (instance->usb_dev);
PDEBUG ("udsl_atm_dev_close: freeing instance\n");
kfree (instance);
}
......@@ -985,6 +987,8 @@ static int udsl_usb_probe (struct usb_interface *intf, const struct usb_device_i
usb_set_intfdata (intf, instance);
usb_get_dev (dev);
return 0;
fail:
......
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