Commit 0189d42c authored by Roger Luethi's avatar Roger Luethi Committed by Greg Kroah-Hartman

[PATCH] USB: visor: Always do generic_startup

generic_startup in visor.c was not called for some hardware, resulting
in attempts to access memory that had never been allocated, which in
turn caused the problem several people reported with recent (2.6.10ish)
kernels.
Signed-off-by: default avatarRoger Luethi <rl@hellgate.ch>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 279e13b7
......@@ -930,7 +930,7 @@ static int treo_attach (struct usb_serial *serial)
if (!((serial->dev->descriptor.idVendor == HANDSPRING_VENDOR_ID) ||
(serial->dev->descriptor.idVendor == KYOCERA_VENDOR_ID)) ||
(serial->num_interrupt_in == 0))
return 0;
goto generic_startup;
dbg("%s", __FUNCTION__);
......@@ -957,6 +957,7 @@ static int treo_attach (struct usb_serial *serial)
COPY_PORT(serial->port[1], swap_port);
kfree(swap_port);
generic_startup:
return generic_startup(serial);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment