On Tue, Jan 14, 2020 at 12:01:46PM +0100, Johan Hovold wrote: > Make sure to stop any submitted write URBs on close(). This specifically > avoids a NULL-pointer dereference or use-after-free in case of a late > completion event after driver unbind. > > Fixes: 648d4e16567e ("USB: serial: opticon: add write support") > Cc: stable <stable@xxxxxxxxxxxxxxx> # 2.6.30: xxx: USB: serial: opticon: add chars_in_buffer() implementation > Signed-off-by: Johan Hovold <johan@xxxxxxxxxx> Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>