From: Jan Safrata Date: Tue, 22 May 2012 12:04:50 +0000 (+0200) Subject: usb: use usb_serial_put in usb_serial_probe errors X-Git-Tag: v3.5-rc3~11^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0658a3366db7e27fa32c12e886230bb58c414c92;p=pandora-kernel.git 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 Acked-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed