diff options
author | Jan Safrata <jan.nikitenko@gmail.com> | 2012-05-22 16:04:50 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-14 04:26:11 +0400 |
commit | 0658a3366db7e27fa32c12e886230bb58c414c92 (patch) | |
tree | cadf90cab3dd5b508d0d48682f835fc87d938450 /samples | |
parent | 07828b10985393cd875eac1545fba47107e97bf9 (diff) | |
download | linux-0658a3366db7e27fa32c12e886230bb58c414c92.tar.xz |
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>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions