USB: symbolserial: Use usb_get_serial_port_data
authorPhilipp Hachtmann <hachti@hachti.de>
Mon, 17 Aug 2015 15:31:46 +0000 (17:31 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 28 Oct 2015 02:14:40 +0000 (22:14 -0400)
commit02f84c66ebaa872c03b3f7afb65d2acb2d98944c
tree7ccfdaedf059ec89fba746964ccd97dbc9fe82bf
parentd01fa89cf3615509269c17cade109c4e6fb93446
USB: symbolserial: Use usb_get_serial_port_data

[ Upstream commit 951d3793bbfc0a441d791d820183aa3085c83ea9 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/usb/serial/symbolserial.c