aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorPawel Laszczak <[email protected]>2021-12-14 05:55:27 +0100
committerGreg Kroah-Hartman <[email protected]>2021-12-15 23:44:31 +0100
commit4c4e162d9cf38528c4f13df09d5755cbc06f6c77 (patch)
tree17be2434049ef268d9842e9d3da7fd9dc0502f33 /net/lapb/lapb_timer.c
parent0ad3bd562bb91853b9f42bda145b5db6255aee90 (diff)
usb: cdnsp: Fix lack of spin_lock_irqsave/spin_lock_restore
Patch puts content of cdnsp_gadget_pullup function inside spin_lock_irqsave and spin_lock_restore section. This construction is required here to keep the data consistency, otherwise some data can be changed e.g. from interrupt context. Fixes: 3d82904559f4 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver") Reported-by: Ken (Jian) He <[email protected]> cc: <[email protected]> Signed-off-by: Pawel Laszczak <[email protected]> -- Changelog: v2: - added disable_irq/enable_irq as sugester by Peter Chen drivers/usb/cdns3/cdnsp-gadget.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) Reviewed-by: Peter Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions