Re: [PATCH] [media] mt9v032: fix hblank calculation

2014-05-26 Thread Laurent Pinchart
Hi Philipp, Thank you for the patch. On Friday 23 May 2014 09:47:57 Philipp Zabel wrote: > Since (min_row_time - crop->width) can be negative, we have to do a signed > comparison here. Otherwise max_t casts the negative value to unsigned int > and sets min_hblank to that invalid value. > > Signe

[PATCH] [media] mt9v032: fix hblank calculation

2014-05-23 Thread Philipp Zabel
Since (min_row_time - crop->width) can be negative, we have to do a signed comparison here. Otherwise max_t casts the negative value to unsigned int and sets min_hblank to that invalid value. Signed-off-by: Philipp Zabel --- drivers/media/i2c/mt9v032.c | 2 +- 1 file changed, 1 insertion(+), 1 d