commit | a069b8bbd9329c3c16a8d175d72424c2c48c933b | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Wed Oct 04 11:01:13 2017 +0200 |
committer | Levente Tamas <ext-levente.tamas@nedevicesw.com> | Tue May 08 17:11:31 2018 +0300 |
tree | 4478319c8bc69e34a9a63615def4161e444582a0 | |
parent | cbdb3bb061da7dac2f85c13c1e2d2e08b86c390c [diff] |
USB: serial: console: fix use-after-free after failed setup Make sure to reset the USB-console port pointer when console setup fails in order to avoid having the struct usb_serial be prematurely freed by the console code when the device is later disconnected. Fixes: 73e487fdb75f ("[PATCH] USB console: fix disconnection issues") Cc: stable <stable@vger.kernel.org> # 2.6.18 Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>