lkml.org 
[lkml]   [2017]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] USB: serial: console: fix use-after-free after failed setup
On Wed, Oct 04, 2017 at 11:01:13AM +0200, Johan Hovold wrote:
> 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
> Signed-off-by: Johan Hovold <johan@kernel.org>

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

\
 
 \ /
  Last update: 2017-10-04 16:40    [W:0.181 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site