Re: [patch -next] V4L/DVB: IR/streamzap: fix usec to nsec conversion

2010-10-12 Thread Jarod Wilson
On Tue, Oct 12, 2010 at 08:01:11AM +0200, Dan Carpenter wrote: > There is an integer overflow here because 0x0300 * 1000 is too large > for 31 bits. > > rawir.duration should be in terms of nsecs. > IR_MAX_DURATION and 0x0300 are already in terms of nsecs. > STREAMZAP_TIMEOUT and STREAMZAP

[patch -next] V4L/DVB: IR/streamzap: fix usec to nsec conversion

2010-10-11 Thread Dan Carpenter
There is an integer overflow here because 0x0300 * 1000 is too large for 31 bits. rawir.duration should be in terms of nsecs. IR_MAX_DURATION and 0x0300 are already in terms of nsecs. STREAMZAP_TIMEOUT and STREAMZAP_RESOLUTION are 255 and 256 respectively and are in terms of usecs. The or