diff options
author | Zhaowei Yuan <zhaowei.yuan@samsung.com> | 2014-08-20 15:04:12 +0800 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 12:00:41 +0900 |
commit | 01fb0b7d6c5a3dd46c5e7fc3118086733361525a (patch) | |
tree | 9c9e1cf6ae09454079f65a811f3e41a7dc446929 | |
parent | 85324810ba0be5411ffa4f9f499454c251dc8901 (diff) | |
download | linux-3.10-01fb0b7d6c5a3dd46c5e7fc3118086733361525a.tar.gz linux-3.10-01fb0b7d6c5a3dd46c5e7fc3118086733361525a.tar.bz2 linux-3.10-01fb0b7d6c5a3dd46c5e7fc3118086733361525a.zip |
media: s5p_mfc: correct the loop condition
It should take ctx->dst_fmt->num_planes as the loop
condition for CAPTURE.
Change-Id: Icc3bf357afefb263f76e37b7ffec23edb788560e
Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
-rw-r--r-- | drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c index 7b18a5055aa..d1c0a7a2607 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c @@ -996,7 +996,7 @@ static int s5p_mfc_buf_init(struct vb2_buffer *vb) if (vq->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { if (ctx->capture_state == QUEUE_BUFS_MMAPED) return 0; - for (i = 0; i <= ctx->src_fmt->num_planes ; i++) { + for (i = 0; i < ctx->dst_fmt->num_planes; i++) { if (IS_ERR_OR_NULL(ERR_PTR( vb2_dma_contig_plane_dma_addr(vb, i)))) { mfc_err("Plane mem not allocated\n"); |