Skip to content
Commit 43d56572 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Felipe Balbi
Browse files

usb: gadget: ffs: ffs_aio_cancel(): Save/restore IRQ flags



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: default avatarMichal Nazarewicz <mina86@mina86.com>
Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarAlexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
parent 9a0d6f7c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment