]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: cdc-acm: fix open and suspend race
authorJohan Hovold <jhovold@gmail.com>
Mon, 26 May 2014 17:23:42 +0000 (19:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Jun 2017 12:03:17 +0000 (14:03 +0200)
commit256d49baf399fae3921083cfb6a8e59ad393fee8
tree5d374e646bfb4c6f69a02662ccac00abae84a89e
parentf8dc9ab9dcf2133919763e00ba646fca891f248b
USB: cdc-acm: fix open and suspend race

commit 703df3297fb1950b0aa53e656108eb936d3f21d9 upstream.

We must not do the usb_autopm_put_interface() before submitting the read
urbs or we might end up doing I/O to a suspended device.

Fixes: 088c64f81284 ("USB: cdc-acm: re-write read processing")
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/usb/class/cdc-acm.c