|
@@ -867,6 +867,10 @@ int omap3isp_video_queue_qbuf(struct isp_video_queue *queue,
|
|
|
if (buf->state != ISP_BUF_STATE_IDLE)
|
|
|
goto done;
|
|
|
|
|
|
+ if (vbuf->memory == V4L2_MEMORY_USERPTR &&
|
|
|
+ vbuf->length < buf->vbuf.length)
|
|
|
+ goto done;
|
|
|
+
|
|
|
if (vbuf->memory == V4L2_MEMORY_USERPTR &&
|
|
|
vbuf->m.userptr != buf->vbuf.m.userptr) {
|
|
|
isp_video_buffer_cleanup(buf);
|