diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2021-12-18 12:57:47 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-21 11:05:44 +0300 |
commit | a7aae769ca626819a7f9f078ebdc69a8a1b00c81 (patch) | |
tree | 602a8f6ab6e97a5192df7f8159ee92d53e4e0f7e /drivers/usb/serial | |
parent | e3d4621c22f90c33321ae6a6baab60cdb8e5a77c (diff) | |
download | linux-a7aae769ca626819a7f9f078ebdc69a8a1b00c81.tar.xz |
usb: mtu3: add memory barrier before set GPD's HWO
There is a seldom issue that the controller access invalid address
and trigger devapc or emimpu violation. That is due to memory access
is out of order and cause gpd data is not correct.
Add mb() to prohibit compiler or cpu from reordering to make sure GPD
is fully written before setting its HWO.
Fixes: 48e0d3735aa5 ("usb: mtu3: supports new QMU format")
Cc: stable@vger.kernel.org
Reported-by: Eddie Hung <eddie.hung@mediatek.com>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/20211218095749.6250-2-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial')
0 files changed, 0 insertions, 0 deletions