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

[PATCH] USB speedtouch: add defensive memory barriers

Defend against future maintainers.
parent d2ef85b0
......@@ -1220,6 +1220,7 @@ static int udsl_usb_probe (struct usb_interface *intf, const struct usb_device_i
finish:
/* ready for ATM callbacks */
wmb ();
instance->atm_dev->dev_data = instance;
usb_set_intfdata (intf, instance);
......@@ -1358,6 +1359,7 @@ static void udsl_usb_disconnect (struct usb_interface *intf)
for (i = 0; i < UDSL_NUM_SND_BUFS; i++)
kfree (instance->send_buffers [i].base);
wmb ();
instance->usb_dev = NULL;
/* ATM finalize */
......
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