From: Antti Palosaari Date: Thu, 21 Aug 2014 17:02:27 +0000 (-0300) Subject: [media] m88ts2022: fix 32bit overflow on filter calc X-Git-Tag: fixes-against-v3.18-rc2~130^2^2~368 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f538e085138e519e25ae0828bd6c6e7492ce8ca4;p=pandora-kernel.git [media] m88ts2022: fix 32bit overflow on filter calc Maximum satellite symbol rate used is 45000000Sps which overflows when multiplied by 135. As final calculation result is fraction, we could use mult_frac macro in order to keep calculation inside 32 bit number limits and prevent overflow. Original bug and fix was provided by Nibble Max. I decided to implement it differently as it is now. Reported-by: Nibble Max Tested-by: Nibble Max Cc: Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed