From: Jiri Slaby Date: Sun, 13 Mar 2011 06:54:31 +0000 (+0000) Subject: NET: cdc-phonet, handle empty phonet header X-Git-Tag: v2.6.39-rc1~468^2~19^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=468c3f924f043cad7a04f4f4d5224a2c9bc886c1;p=pandora-kernel.git NET: cdc-phonet, handle empty phonet header Currently, for N 5800 XM I get: cdc_phonet: probe of 1-6:1.10 failed with error -22 It's because phonet_header is empty. Extra altsetting looks like there: E 05 24 00 01 10 03 24 ab 05 24 06 0a 0b 04 24 fd .$....$..$....$. E 00 . I don't see the header used anywhere so just check if the phonet descriptor is there, not the structure itself. Signed-off-by: Jiri Slaby Cc: Rémi Denis-Courmont Cc: David S. Miller Acked-by: Rémi Denis-Courmont Signed-off-by: David S. Miller --- Reading git-diff-tree failed