aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJan Safrata <jan.nikitenko@gmail.com>2012-05-22 14:04:50 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-26 11:34:54 -0800
commit40ebcb89e6c84b5a5aca74d8df26705663a24598 (patch)
treeb40aba8858517fb372e1570948c1449b9eadd2bf /fs
parent328325bf4fe39db557c2ea012a69b764734f27e5 (diff)
downloadkernel_samsung_smdk4412-40ebcb89e6c84b5a5aca74d8df26705663a24598.zip
kernel_samsung_smdk4412-40ebcb89e6c84b5a5aca74d8df26705663a24598.tar.gz
kernel_samsung_smdk4412-40ebcb89e6c84b5a5aca74d8df26705663a24598.tar.bz2
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 'fs')
0 files changed, 0 insertions, 0 deletions