mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
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:383cedc3bb("USB: serial: full autosuspend support for the option driver") Cc: <stable@vger.kernel.org> # v2.6.32:032129cb03Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
79eed03e77
commit
9096f1fbba
1 changed files with 19 additions and 24 deletions
Loading…
Add table
Add a link
Reference in a new issue