Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1da43900 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: usbduxsigma: always clear the usb intfdata in (*detach)



Make sure the usb intfdata is always cleared when the device is
detached.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 71d7e1ee
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1703,11 +1703,11 @@ static void usbduxsigma_detach(struct comedi_device *dev)
	struct usb_interface *intf = comedi_to_usb_interface(dev);
	struct usbduxsigma_private *devpriv = dev->private;

	usb_set_intfdata(intf, NULL);

	if (!devpriv)
		return;

	usb_set_intfdata(intf, NULL);

	down(&devpriv->sem);

	/* force unlink all urbs */