From: Dan Carpenter Date: Tue, 12 Oct 2010 13:42:08 +0000 (-0300) Subject: [media] IR/streamzap: fix usec to nsec conversion X-Git-Tag: v2.6.37-rc1~64^2~204 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b784cfcec7293f688b09d3850826216a4e134d2e;p=pandora-kernel.git [media] IR/streamzap: fix usec to nsec conversion There is an integer overflow here because 0x03000000 * 1000 is too large for 31 bits. rawir.duration should be in terms of nsecs. IR_MAX_DURATION and 0x03000000 are already in terms of nsecs. STREAMZAP_TIMEOUT and STREAMZAP_RESOLUTION are 255 and 256 respectively and are in terms of usecs. The original code had a deadline of 1.005 seconds and the new code has a deadline of .065 seconds. Signed-off-by: Dan Carpenter Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed