summaryrefslogtreecommitdiffstats
path: root/arch/unicore32/mm/extable.c
diff options
context:
space:
mode:
authorBjørn Mork2012-07-27 01:11:42 +0200
committerGreg Kroah-Hartman2012-08-10 20:51:43 +0200
commitd5fd650cfc7ffeca4af0da939293c8e7a5aa7c36 (patch)
tree1f005c3c25a7d75d2cf4abc01f566efa23f9425a /arch/unicore32/mm/extable.c
parentusb: usb_wwan: replace release and disconnect with a port_remove hook (diff)
downloadkernel-qcow2-linux-d5fd650cfc7ffeca4af0da939293c8e7a5aa7c36.tar.gz
kernel-qcow2-linux-d5fd650cfc7ffeca4af0da939293c8e7a5aa7c36.tar.xz
kernel-qcow2-linux-d5fd650cfc7ffeca4af0da939293c8e7a5aa7c36.zip
usb: serial: prevent suspend/resume from racing against probe/remove
Some usb-serial drivers may access port data in their suspend/ resume functions. Such drivers must always verify the validity of the data as both suspend and resume can be called both before usb_serial_device_probe and after usb_serial_device_remove. But the port data may be invalidated during port_probe and port_remove. This patch prevents the race against suspend and resume by disabling suspend while port_probe or port_remove is running. Suggested-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/unicore32/mm/extable.c')
0 files changed, 0 insertions, 0 deletions