[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201204261356.03000.oliver@neukum.org>
Date: Thu, 26 Apr 2012 13:56:02 +0200
From: Oliver Neukum <oliver@...kum.org>
To: Bjørn Mork <bjorn@...k.no>
Cc: netdev@...r.kernel.org, linux-usb@...r.kernel.org,
Markus Kolb <linux-201011@...er-net.de>,
Iker Salmón San Millán
<shaola@...ebian.org>, Jonathan Nieder <jrnieder@...il.com>,
655387@...s.debian.org, stable@...r.kernel.org
Subject: Re: [PATCH net] cdc_ether: Ignore bogus union descriptor for RNDIS devices
Am Donnerstag, 26. April 2012, 12:55:03 schrieb Bjørn Mork:
> Some RNDIS devices include a bogus CDC Union descriptor pointing
> to non-existing interfaces. The RNDIS code is already prepared
> to handle devices without a CDC Union descriptor by hardwiring
> the driver to use interfaces 0 and 1, which is correct for the
> devices with the bogus descriptor as well. So we can reuse the
> existing workaround.
Very good, except that this is a bit risky, because we may use
interface 0 without checking that it belongs to us. Could you
add a sanity check that the interface for which probe() is called
is really the control interface in case a workaround is used?
Regards
Oliver
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists