USB: symbolserial: Use usb_get_serial_port_data
authorPhilipp Hachtmann <hachti@hachti.de>
Mon, 17 Aug 2015 15:31:46 +0000 (17:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Aug 2015 17:06:22 +0000 (10:06 -0700)
commit951d3793bbfc0a441d791d820183aa3085c83ea9
tree95065ade1289d77f4d7869764e8805aadd0c4d1b
parenta0c9d0defcdadd31ab111b1616f60cf919c6a020
USB: symbolserial: Use usb_get_serial_port_data

The driver used usb_get_serial_data(port->serial) which compiled but resulted
in a NULL pointer being returned (and subsequently used). I did not go deeper
into this but I guess this is a regression.

Signed-off-by: Philipp Hachtmann <hachti@hachti.de>
Fixes: a85796ee5149 ("USB: symbolserial: move private-data allocation to
port_probe")
Cc: stable <stable@vger.kernel.org> # v3.10
Acked-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/symbolserial.c