Message ID | 1248357387-14720-4-git-send-email-tuukka.o.toivonen@nokia.com (mailing list archive) |
---|---|
State | RFC |
Headers | show |
diff --git a/drivers/media/video/omap34xxcam.c b/drivers/media/video/omap34xxcam.c index 08d8253..be2dd2d 100644 --- a/drivers/media/video/omap34xxcam.c +++ b/drivers/media/video/omap34xxcam.c @@ -154,7 +154,8 @@ static int omap34xxcam_vbq_setup(struct videobuf_queue *vbq, unsigned int *cnt, *size = vdev->pix.sizeimage; - while (*size * *cnt > fh->vdev->vdev_sensor_config.capture_mem) + while (PAGE_ALIGN(*size) * *cnt > + fh->vdev->vdev_sensor_config.capture_mem) (*cnt)--; return isp_vbq_setup(vdev->cam->isp, vbq, cnt, size);