diff options
author | Jan Safrata <jan.nikitenko@gmail.com> | 2012-05-22 14:04:50 +0200 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-12-06 11:20:13 +0000 |
commit | a9dfbb96d0323de990ade388c566e14db9837636 (patch) | |
tree | 6360a55e8d39a170062efcf6b7de085adeb8903c /fs/autofs4 | |
parent | 4affc3ac58e26b9ed85ce7d30f1f58975dd157cd (diff) |
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'fs/autofs4')
0 files changed, 0 insertions, 0 deletions