Searched hist:"9096 f1fbba916c2e052651e9de82fcfb98d4bea7" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/usb/serial/ |
H A D | usb_wwan.c | diff 9096f1fbba916c2e052651e9de82fcfb98d4bea7 Mon May 26 12:23:17 CDT 2014 Johan Hovold <jhovold@gmail.com> 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: <stable@vger.kernel.org> # v2.6.32: 032129cb03df Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|