Skip to content
Commit 0658a336 authored by Jan Safrata's avatar Jan Safrata Committed by Greg Kroah-Hartman
Browse files

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: default avatarJan Safrata <jan.nikitenko@gmail.com>
Acked-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 07828b10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment