From: Laurent Pinchart Date: Tue, 12 May 2015 21:57:53 +0000 (-0300) Subject: [media] uvcvideo: Fix incorrect bandwidth with Chicony device 04f2:b50b X-Git-Tag: omap-for-v4.2/fixes-rc1^2~111^2~162 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37f85b276a36b531234992b05eb057841af46fb4;p=pandora-kernel.git [media] uvcvideo: Fix incorrect bandwidth with Chicony device 04f2:b50b The "TOSHIBA Web Camera - 5M" Chicony device (04f2:b50b) seems to compute the bandwidth on 16 bits and erroneously sign-extend it to 32 bits, resulting in a huge bandwidth value. Detect and fix that condition by setting the 16 MSBs to 0 when they're all equal to 1. Reported-by: Hans de Goede Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed