Jan Safrata 0658a3366d usb: use usb_serial_put in usb_serial_probe errors
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>
2012-06-13 17:26:11 -07:00
..
2012-05-15 16:27:08 -07:00
2012-05-15 16:27:11 -07:00
2012-05-15 16:27:17 -07:00
2012-05-15 16:27:20 -07:00
2012-05-15 16:27:23 -07:00
2012-05-15 16:27:25 -07:00
2012-06-12 16:25:01 -07:00
2012-05-15 16:27:30 -07:00