From: Bjørn Mork Date: Thu, 26 Jul 2012 23:11:42 +0000 (+0200) Subject: usb: serial: prevent suspend/resume from racing against probe/remove X-Git-Tag: v3.6-rc3~41^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5fd650cfc7ffeca4af0da939293c8e7a5aa7c36;p=pandora-kernel.git 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 Signed-off-by: Bjørn Mork Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed