diff options
author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2019-12-11 16:20:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-17 20:39:51 +0100 |
commit | d12f592f95c956813e513a9f443f1375f5c73b28 (patch) | |
tree | f800a1b8a63c9b71ce188c7ee0fcbff74e4d0fbf /drivers/iio/imu/adis16480.c | |
parent | 1fbaac5f1827570565dd0373190e75bde878c854 (diff) |
xhci: make sure interrupts are restored to correct state
[ Upstream commit bd82873f23c9a6ad834348f8b83f3b6a5bca2c65 ]
spin_unlock_irqrestore() might be called with stale flags after
reading port status, possibly restoring interrupts to a incorrect
state.
If a usb2 port just finished resuming while the port status is read
the spin lock will be temporary released and re-acquired in a separate
function. The flags parameter is passed as value instead of a pointer,
not updating flags properly before the final spin_unlock_irqrestore()
is called.
Cc: <stable@vger.kernel.org> # v3.12+
Fixes: 8b3d45705e54 ("usb: Fix xHCI host issues on remote wakeup.")
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20191211142007.8847-7-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/iio/imu/adis16480.c')
0 files changed, 0 insertions, 0 deletions