Commit f4d340cf authored by David Brownell's avatar David Brownell Committed by Linus Torvalds

[PATCH] USB: resolve Zaurus problem

This "obvious" one-liner is needed to recognize Zaurus SL 6000;
it just checks two GUIDs not just one.

OSDL bugids #4512 and #4545 seem to be duplicates of this report.

From: Gerald Skerbitz <gsker@tcfreenet.org>
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 39a66b8d
...@@ -2765,7 +2765,7 @@ static int blan_mdlm_bind (struct usbnet *dev, struct usb_interface *intf) ...@@ -2765,7 +2765,7 @@ static int blan_mdlm_bind (struct usbnet *dev, struct usb_interface *intf)
} }
/* expect bcdVersion 1.0, ignore */ /* expect bcdVersion 1.0, ignore */
if (memcmp(&desc->bGUID, blan_guid, 16) if (memcmp(&desc->bGUID, blan_guid, 16)
&& memcmp(&desc->bGUID, blan_guid, 16) ) { && memcmp(&desc->bGUID, safe_guid, 16) ) {
/* hey, this one might _really_ be MDLM! */ /* hey, this one might _really_ be MDLM! */
dev_dbg (&intf->dev, "MDLM guid\n"); dev_dbg (&intf->dev, "MDLM guid\n");
goto bad_desc; goto bad_desc;
......
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