diff options
author | Jan Safrata <jan.nikitenko@gmail.com> | 2012-05-22 16:04:50 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-26 23:37:49 +0400 |
commit | 9dbd3418ff461025e904e65326aeeb5389f65799 (patch) | |
tree | 9756325e9cd5205ec4eb324927d3a9fea25bfb3b /drivers/tty | |
parent | a39bdce2f2a9aebda1b9438c4b2e91c0dd507a34 (diff) | |
download | linux-9dbd3418ff461025e904e65326aeeb5389f65799.tar.xz |
usb: use usb_serial_put in usb_serial_probe errors
commit 0658a3366db7e27fa32c12e886230bb58c414c92 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>
Diffstat (limited to 'drivers/tty')
0 files changed, 0 insertions, 0 deletions