Files
linux/drivers/usb/serial
Jan Safrata 40ebcb89e6 usb: use usb_serial_put in usb_serial_probe errors
commit 0658a3366d upstream.

The use of kfree(serial) in error cases of usb_serial_probe
was invalid - usb_serial structure allocated in create_serial()
gets reference of usb_device that needs to be put, so we need
to use usb_serial_put() instead of simple kfree().

Signed-off-by: Jan Safrata <jan.nikitenko@gmail.com>
Acked-by: Johan Hovold <jhovold@gmail.com>
Cc: Richard Retanubun <richardretanubun@ruggedcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-26 11:34:54 -08:00
..
2011-03-31 11:26:23 -03:00
2011-11-26 09:10:02 -08:00
2012-07-16 08:47:48 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2012-11-17 13:14:25 -08:00
2012-01-12 11:35:17 -08:00
2011-11-26 09:10:01 -08:00