diff options
author | David Brownell <david-b@pacbell.net> | 2007-04-29 21:09:47 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-05-23 10:45:48 +0400 |
commit | 4149b72eaa74583c361e3aaf5804eb74b72c51f1 (patch) | |
tree | 49191dc736116ff2e00686b3605ce7ea130da1cf /drivers/net/usb/rndis_host.c | |
parent | 47f8468e6008a1d62f7dacbcff4ec3e115a500c8 (diff) | |
download | linux-4149b72eaa74583c361e3aaf5804eb74b72c51f1.tar.xz |
USB: handle more rndis_host oddities
Workaround another device firmware bug, wherein CDC descriptors get
placed in a wrong place never previously observed in the wild.
Fix a bug where a seeming RNDIS device returns a bogus response during
device initialization.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net/usb/rndis_host.c')
-rw-r--r-- | drivers/net/usb/rndis_host.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/usb/rndis_host.c b/drivers/net/usb/rndis_host.c index 980e4aaa97aa..cd991a0f75bb 100644 --- a/drivers/net/usb/rndis_host.c +++ b/drivers/net/usb/rndis_host.c @@ -515,6 +515,7 @@ static int rndis_bind(struct usbnet *dev, struct usb_interface *intf) dev_err(&intf->dev, "dev can't take %u byte packets (max %u)\n", dev->hard_mtu, tmp); + retval = -EINVAL; goto fail_and_release; } |