From: Johan Hovold Date: Mon, 26 May 2014 17:23:17 +0000 (+0200) Subject: USB: usb_wwan: fix potential NULL-deref at resume X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~34^2~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9096f1fbba91;p=pandora-kernel.git USB: usb_wwan: fix potential NULL-deref at resume The interrupt urb was submitted unconditionally at resume, something which could lead to a NULL-pointer dereference in the urb completion handler as resume may be called after the port and port data is gone. Fix this by making sure the interrupt urb is only submitted and active when the port is open. Fixes: 383cedc3bb43 ("USB: serial: full autosuspend support for the option driver") Cc: # v2.6.32: 032129cb03df Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed