提交 2a540edf 编写于 作者: O Oliver Neukum 提交者: Felipe Balbi

usb: dwc3: core: memory ordering fix in close

As a bitmap is used for free/used. As a device freed
all memory operations must be scheduled before the bitmap
is manipulated.
Signed-off-by: NOliver Neukum <oneukum@suse.de>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 c6f83f38
......@@ -99,6 +99,7 @@ void dwc3_put_device_id(int id)
ret = test_bit(id, dwc3_devs);
WARN(!ret, "dwc3: ID %d not in use\n", id);
smp_mb__before_clear_bit();
clear_bit(id, dwc3_devs);
}
EXPORT_SYMBOL_GPL(dwc3_put_device_id);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册