From: Bjørn Mork Date: Thu, 26 Jul 2012 23:11:43 +0000 (+0200) Subject: usb: usb_wwan: resume/suspend can be called after port is gone X-Git-Tag: v3.6-rc3~41^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=032129cb03df196c4216a82295e6555539da4ce7;p=pandora-kernel.git usb: usb_wwan: resume/suspend can be called after port is gone We cannot unconditionally access any usb-serial port specific data from the interface driver. Both supending and resuming may happen after the port has been removed and portdata is freed. Treat ports with no portdata as closed ports to avoid a NULL pointer dereference on resume. No need to kill URBs for removed ports on suspend, avoiding the same NULL pointer reference there. Signed-off-by: Bjørn Mork Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed