Merge 3.5-rc4 into tty-next
This is to pick up the serial port and tty changes in Linus's tree to allow everyone to sync up. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -659,12 +659,14 @@ exit:
|
||||
static struct usb_serial_driver *search_serial_device(
|
||||
struct usb_interface *iface)
|
||||
{
|
||||
const struct usb_device_id *id;
|
||||
const struct usb_device_id *id = NULL;
|
||||
struct usb_serial_driver *drv;
|
||||
struct usb_driver *driver = to_usb_driver(iface->dev.driver);
|
||||
|
||||
/* Check if the usb id matches a known device */
|
||||
list_for_each_entry(drv, &usb_serial_driver_list, driver_list) {
|
||||
id = get_iface_id(drv, iface);
|
||||
if (drv->usb_driver == driver)
|
||||
id = get_iface_id(drv, iface);
|
||||
if (id)
|
||||
return drv;
|
||||
}
|
||||
@@ -755,7 +757,7 @@ static int usb_serial_probe(struct usb_interface *interface,
|
||||
|
||||
if (retval) {
|
||||
dbg("sub driver rejected device");
|
||||
kfree(serial);
|
||||
usb_serial_put(serial);
|
||||
module_put(type->driver.owner);
|
||||
return retval;
|
||||
}
|
||||
@@ -827,7 +829,7 @@ static int usb_serial_probe(struct usb_interface *interface,
|
||||
*/
|
||||
if (num_bulk_in == 0 || num_bulk_out == 0) {
|
||||
dev_info(&interface->dev, "PL-2303 hack: descriptors matched but endpoints did not\n");
|
||||
kfree(serial);
|
||||
usb_serial_put(serial);
|
||||
module_put(type->driver.owner);
|
||||
return -ENODEV;
|
||||
}
|
||||
@@ -841,7 +843,7 @@ static int usb_serial_probe(struct usb_interface *interface,
|
||||
if (num_ports == 0) {
|
||||
dev_err(&interface->dev,
|
||||
"Generic device with no bulk out, not allowed.\n");
|
||||
kfree(serial);
|
||||
usb_serial_put(serial);
|
||||
module_put(type->driver.owner);
|
||||
return -EIO;
|
||||
}
|
||||
|
Reference in New Issue
Block a user