diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2020-01-16 15:29:01 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-12 13:00:10 +0100 |
commit | a3a7d31645e5afb51fca639a00c1ceb58fbe54c9 (patch) | |
tree | e5f704f39d3551c9885c953ce46e40f114fcf29b /drivers/usb/serial/ftdi_sio.h | |
parent | aae7167626ce37aa9e8d3e0fb0c66c7b54ef94dd (diff) |
usb: gadget: ffs: ffs_aio_cancel(): Save/restore IRQ flags
[ Upstream commit 43d565727a3a6fd24e37c7c2116475106af71806 ]
ffs_aio_cancel() can be called from both interrupt and thread context. Make
sure that the current IRQ state is saved and restored by using
spin_{un,}lock_irq{save,restore}().
Otherwise undefined behavior might occur.
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/usb/serial/ftdi_sio.h')
0 files changed, 0 insertions, 0 deletions