aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/dwc3/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 4f2ef5345392..08a5738a6e1b 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -99,6 +99,7 @@ void dwc3_put_device_id(int id)
99 99
100 ret = test_bit(id, dwc3_devs); 100 ret = test_bit(id, dwc3_devs);
101 WARN(!ret, "dwc3: ID %d not in use\n", id); 101 WARN(!ret, "dwc3: ID %d not in use\n", id);
102 smp_mb__before_clear_bit();
102 clear_bit(id, dwc3_devs); 103 clear_bit(id, dwc3_devs);
103} 104}
104EXPORT_SYMBOL_GPL(dwc3_put_device_id); 105EXPORT_SYMBOL_GPL(dwc3_put_device_id);