Files
Jan Safrata a9dfbb96d0 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2012-12-06 11:20:13 +00:00
..
2011-11-14 13:47:47 -08:00
2012-07-04 05:44:31 +01:00
2012-10-30 23:27:01 +00:00
2012-11-16 16:46:51 +00:00
2012-01-12 11:29:41 -08:00
2011-11-15 10:06:15 -08:00