From: Alan Stern Date: Tue, 20 Apr 2010 14:40:59 +0000 (-0400) Subject: USB: don't choose configs with no interfaces X-Git-Tag: v2.6.34-rc7~38^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62f9cfa3ece58268b3e92ca59c23b175f86205aa;p=pandora-kernel.git USB: don't choose configs with no interfaces 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 Tested-by: Andrew Victor Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed