Trusting the hardware too much
Posted Feb 17, 2012 0:29 UTC (Fri) by
corbet (editor, #1)
In reply to:
Trusting the hardware too much by marcH
Parent article:
Trusting the hardware too much
I'm not the poster you're responding to, but I did also check out a report in my code. It thinks this function in drivers/media/video/ov7670.c is an infinite loop:
static int ov7670_write_array(struct v4l2_subdev *sd, struct regval_list *vals)
{
while (vals->reg_num != 0xff || vals->value != 0xff) {
int ret = ov7670_write(sd, vals->reg_num, vals->value);
if (ret < 0)
return ret;
vals++;
}
return 0;
}
...but it's just reading through a static array, looking for the end marker.
(
Log in to post comments)