diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2010-04-20 10:40:59 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-12 14:57:02 -0700 |
commit | 0f6f37f1a93d1936d18e99739062f783118c9f98 (patch) | |
tree | 511d5862a2596c822b1e374ecd7f8ef45a8c39f9 /block | |
parent | b7cbd217d5a3197fa38f88a89bb75fa6bf7121b4 (diff) |
USB: don't choose configs with no interfaces
commit 62f9cfa3ece58268b3e92ca59c23b175f86205aa upstream.
This patch (as1372) fixes a bug in the routine that chooses the
default configuration to install when a new USB device is detected.
The algorithm is supposed to look for a config whose first interface
is for a non-vendor-specific class. But the way it's currently
written, it will also accept a config with no interfaces at all, which
is not very useful. (Believe it or not, such things do exist.)
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Andrew Victor <avictor.za@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions