From: Hans-Frieder Vogt Date: Wed, 3 Oct 2012 08:25:40 +0000 (-0300) Subject: [media] af9033: prevent unintended underflow X-Git-Tag: v3.7-rc1~38^2^2~108 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=182b967e1119d22889e334c8f1c1b75df41f9165;p=pandora-kernel.git [media] af9033: prevent unintended underflow As spotted by Dan Carpenter (thanks!), we have improperly used an unsigned variable in a calculation that may result in a negative number. This may cause an unintended underflow if the interface frequency of the tuner is > approx. 40MHz. This patch should resolve the issue, following an approach similar to what is used in af9013.c. [crope@iki.fi: add Reported-by] Reported-by: Dan Carpenter Signed-off-by: Hans-Frieder Vogt Reviewed-by: Antti Palosaari Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed