Re: [PATCH] usb: rndis_host: error during probe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Ridgway, Keith" <kridgway@xxxxxxxxxx> writes:

> diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c index f3ae88fdf332..87c7ff190c29 100644
> --- a/drivers/net/usb/cdc_ether.c
> +++ b/drivers/net/usb/cdc_ether.c
> @@ -315,8 +315,10 @@ int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf)
>  	 * don't do reset all the way. So the packet filter should
>  	 * be set to a sane initial value.
>  	 */
> -	usbnet_cdc_update_filter(dev);
> -
> +	if (!rndis) {
> +		usbnet_cdc_update_filter(dev);
> +	}
> +	
>  	return 0;
>  
>  bad_desc:


Oliver already posted exactly this patch, but decided that there were
better ways to solve the problem.  See
http://patchwork.ozlabs.org/patch/762478/

I assume he will send a new version when it is ready.

BTW: you may want to look at

 https://www.kernel.org/doc/Documentation/process/submitting-patches.rst

for your next patch submission.  And maybe also

 https://www.kernel.org/doc/Documentation/networking/netdev-FAQ.txt

for patches to drivers/net/


Bjørn
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux