All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] s5p-fimc driver fixes for 3.0
@ 2011-06-02 10:11 Sylwester Nawrocki
  2011-06-02 10:11 ` [PATCH 2/7] s5p-fimc: Fix V4L2_PIX_FMT_RGB565X description Sylwester Nawrocki
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Sylwester Nawrocki @ 2011-06-02 10:11 UTC (permalink / raw)
  To: linux-media, linux-samsung-soc
  Cc: m.szyprowski, kyungmin.park, s.nawrocki, sw0312.kim, riverful.kim

Hello,

the following are a few bugfix patches for s5p-fimc driver.
Except the kernel-doc comments corrections, debug trace cleanup
and the copyright update they fix the buffer allocation issue and 
possible memory leak on error path.

 drivers/media/video/s5p-fimc/fimc-capture.c |   21 ++----------------
 drivers/media/video/s5p-fimc/fimc-core.c    |   28 +++++++------------------
 drivers/media/video/s5p-fimc/fimc-core.h    |   29 ++++++++++++--------------
 3 files changed, 24 insertions(+), 54 deletions(-)

Regards,
--
Sylwester Nawrocki
Samsung Poland R&D Center





^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 2/7] s5p-fimc: Fix V4L2_PIX_FMT_RGB565X description
  2011-06-02 10:11 [PATCH 0/7] s5p-fimc driver fixes for 3.0 Sylwester Nawrocki
@ 2011-06-02 10:11 ` Sylwester Nawrocki
  2011-06-02 10:12 ` [PATCH 3/7] s5p-fimc: Fix data structures documentation and cleanup debug trace Sylwester Nawrocki
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Sylwester Nawrocki @ 2011-06-02 10:11 UTC (permalink / raw)
  To: linux-media, linux-samsung-soc
  Cc: m.szyprowski, kyungmin.park, s.nawrocki, sw0312.kim, riverful.kim

Remove V4L2_MBUS_FMT_RGB565_2X8_BE media code entry as
camera interface supports only packed YUYV formats.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 drivers/media/video/s5p-fimc/fimc-core.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/s5p-fimc/fimc-core.c b/drivers/media/video/s5p-fimc/fimc-core.c
index dc91a85..f1c7119 100644
--- a/drivers/media/video/s5p-fimc/fimc-core.c
+++ b/drivers/media/video/s5p-fimc/fimc-core.c
@@ -42,7 +42,6 @@ static struct fimc_fmt fimc_formats[] = {
 		.color		= S5P_FIMC_RGB565,
 		.memplanes	= 1,
 		.colplanes	= 1,
-		.mbus_code	= V4L2_MBUS_FMT_RGB565_2X8_BE,
 		.flags		= FMT_FLAGS_M2M,
 	}, {
 		.name		= "BGR666",
-- 
1.7.5.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/7] s5p-fimc: Fix data structures documentation and cleanup debug trace
  2011-06-02 10:11 [PATCH 0/7] s5p-fimc driver fixes for 3.0 Sylwester Nawrocki
  2011-06-02 10:11 ` [PATCH 2/7] s5p-fimc: Fix V4L2_PIX_FMT_RGB565X description Sylwester Nawrocki
@ 2011-06-02 10:12 ` Sylwester Nawrocki
  2011-06-02 10:12 ` [PATCH 4/7] s5p-fimc: Fix wrong buffer size in queue_setup Sylwester Nawrocki
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Sylwester Nawrocki @ 2011-06-02 10:12 UTC (permalink / raw)
  To: linux-media, linux-samsung-soc
  Cc: m.szyprowski, kyungmin.park, s.nawrocki, sw0312.kim, riverful.kim

Correct inconsistencies in data structures' documentation.
Remove meaningless debug traces.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 drivers/media/video/s5p-fimc/fimc-capture.c |    9 ---------
 drivers/media/video/s5p-fimc/fimc-core.c    |    6 ------
 drivers/media/video/s5p-fimc/fimc-core.h    |   25 ++++++++++++-------------
 3 files changed, 12 insertions(+), 28 deletions(-)

diff --git a/drivers/media/video/s5p-fimc/fimc-capture.c b/drivers/media/video/s5p-fimc/fimc-capture.c
index 7e66455..44fc26f 100644
--- a/drivers/media/video/s5p-fimc/fimc-capture.c
+++ b/drivers/media/video/s5p-fimc/fimc-capture.c
@@ -262,12 +262,7 @@ static unsigned int get_plane_size(struct fimc_frame *fr, unsigned int plane)
 {
 	if (!fr || plane >= fr->fmt->memplanes)
 		return 0;
-
-	dbg("%s: w: %d. h: %d. depth[%d]: %d",
-	    __func__, fr->width, fr->height, plane, fr->fmt->depth[plane]);
-
 	return fr->f_width * fr->f_height * fr->fmt->depth[plane] / 8;
-
 }
 
 static int queue_setup(struct vb2_queue *vq, unsigned int *num_buffers,
@@ -283,12 +278,8 @@ static int queue_setup(struct vb2_queue *vq, unsigned int *num_buffers,
 
 	*num_planes = fmt->memplanes;
 
-	dbg("%s, buffer count=%d, plane count=%d",
-	    __func__, *num_buffers, *num_planes);
-
 	for (i = 0; i < fmt->memplanes; i++) {
 		sizes[i] = get_plane_size(&ctx->d_frame, i);
-		dbg("plane: %u, plane_size: %lu", i, sizes[i]);
 		allocators[i] = ctx->fimc_dev->alloc_ctx;
 	}
 
diff --git a/drivers/media/video/s5p-fimc/fimc-core.c b/drivers/media/video/s5p-fimc/fimc-core.c
index f1c7119..c427edd 100644
--- a/drivers/media/video/s5p-fimc/fimc-core.c
+++ b/drivers/media/video/s5p-fimc/fimc-core.c
@@ -231,11 +231,7 @@ static int fimc_get_scaler_factor(u32 src, u32 tar, u32 *ratio, u32 *shift)
 			return 0;
 		}
 	}
-
 	*shift = 0, *ratio = 1;
-
-	dbg("s: %d, t: %d, shift: %d, ratio: %d",
-	    src, tar, *shift, *ratio);
 	return 0;
 }
 
@@ -267,10 +263,8 @@ int fimc_set_scaler_info(struct fimc_ctx *ctx)
 		err("invalid source size: %d x %d", sx, sy);
 		return -EINVAL;
 	}
-
 	sc->real_width = sx;
 	sc->real_height = sy;
-	dbg("sx= %d, sy= %d, tx= %d, ty= %d", sx, sy, tx, ty);
 
 	ret = fimc_get_scaler_factor(sx, tx, &sc->pre_hratio, &sc->hfactor);
 	if (ret)
diff --git a/drivers/media/video/s5p-fimc/fimc-core.h b/drivers/media/video/s5p-fimc/fimc-core.h
index 3beb1e5..8f0f168 100644
--- a/drivers/media/video/s5p-fimc/fimc-core.h
+++ b/drivers/media/video/s5p-fimc/fimc-core.h
@@ -135,9 +135,10 @@ enum fimc_color_fmt {
  * @name: format description
  * @fourcc: the fourcc code for this format, 0 if not applicable
  * @color: the corresponding fimc_color_fmt
- * @depth: per plane driver's private 'number of bits per pixel'
  * @memplanes: number of physically non-contiguous data planes
  * @colplanes: number of physically contiguous data planes
+ * @depth: per plane driver's private 'number of bits per pixel'
+ * @flags: flags indicating which operation mode format applies to
  */
 struct fimc_fmt {
 	enum v4l2_mbus_pixelcode mbus_code;
@@ -171,7 +172,7 @@ struct fimc_dma_offset {
 };
 
 /**
- * struct fimc_effect - the configuration data for the "Arbitrary" image effect
+ * struct fimc_effect - color effect information
  * @type:	effect type
  * @pat_cb:	cr value when type is "arbitrary"
  * @pat_cr:	cr value when type is "arbitrary"
@@ -184,7 +185,6 @@ struct fimc_effect {
 
 /**
  * struct fimc_scaler - the configuration data for FIMC inetrnal scaler
- *
  * @scaleup_h:		flag indicating scaling up horizontally
  * @scaleup_v:		flag indicating scaling up vertically
  * @copy_mode:		flag indicating transparent DMA transfer (no scaling
@@ -220,7 +220,6 @@ struct fimc_scaler {
 
 /**
  * struct fimc_addr - the FIMC physical address set for DMA
- *
  * @y:	 luminance plane physical address
  * @cb:	 Cb plane physical address
  * @cr:	 Cr plane physical address
@@ -234,6 +233,7 @@ struct fimc_addr {
 /**
  * struct fimc_vid_buffer - the driver's video buffer
  * @vb:    v4l videobuf buffer
+ * @list:  linked list structure for buffer queue
  * @paddr: precalculated physical address set
  * @index: buffer index for the output DMA engine
  */
@@ -254,11 +254,10 @@ struct fimc_vid_buffer {
  * @offs_v:	image vertical pixel offset
  * @width:	image pixel width
  * @height:	image pixel weight
- * @paddr:	image frame buffer physical addresses
- * @buf_cnt:	number of buffers depending on a color format
  * @payload:	image size in bytes (w x h x bpp)
- * @color:	color format
+ * @paddr:	image frame buffer physical addresses
  * @dma_offset:	DMA offset in bytes
+ * @fmt:	fimc color format pointer
  */
 struct fimc_frame {
 	u32	f_width;
@@ -390,21 +389,22 @@ struct fimc_ctx;
 
 /**
  * struct fimc_dev - abstraction for FIMC entity
- *
  * @slock:	the spinlock protecting this data structure
  * @lock:	the mutex protecting this data structure
  * @pdev:	pointer to the FIMC platform device
  * @pdata:	pointer to the device platform data
+ * @variant:	the IP variant information
  * @id:		FIMC device index (0..FIMC_MAX_DEVS)
  * @num_clocks: the number of clocks managed by this device instance
- * @clock[]:	the clocks required for FIMC operation
+ * @clock:	clocks required for FIMC operation
  * @regs:	the mapped hardware registers
  * @regs_res:	the resource claimed for IO registers
- * @irq:	interrupt number of the FIMC subdevice
- * @irq_queue:
+ * @irq:	FIMC interrupt number
+ * @irq_queue:	interrupt handler waitqueue
  * @m2m:	memory-to-memory V4L2 device information
  * @vid_cap:	camera capture device information
  * @state:	flags used to synchronize m2m and capture mode operation
+ * @alloc_ctx:	videobuf2 memory allocator context
  */
 struct fimc_dev {
 	spinlock_t			slock;
@@ -427,8 +427,7 @@ struct fimc_dev {
 
 /**
  * fimc_ctx - the device context data
- *
- * @lock:		mutex protecting this data structure
+ * @slock:		spinlock protecting this data structure
  * @s_frame:		source frame properties
  * @d_frame:		destination frame properties
  * @out_order_1p:	output 1-plane YCBCR order
-- 
1.7.5.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 4/7] s5p-fimc: Fix wrong buffer size in queue_setup
  2011-06-02 10:11 [PATCH 0/7] s5p-fimc driver fixes for 3.0 Sylwester Nawrocki
  2011-06-02 10:11 ` [PATCH 2/7] s5p-fimc: Fix V4L2_PIX_FMT_RGB565X description Sylwester Nawrocki
  2011-06-02 10:12 ` [PATCH 3/7] s5p-fimc: Fix data structures documentation and cleanup debug trace Sylwester Nawrocki
@ 2011-06-02 10:12 ` Sylwester Nawrocki
  2011-06-02 10:12 ` [PATCH 5/7] s5p-fimc: Remove empty buf_init operation Sylwester Nawrocki
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Sylwester Nawrocki @ 2011-06-02 10:12 UTC (permalink / raw)
  To: linux-media, linux-samsung-soc
  Cc: m.szyprowski, kyungmin.park, s.nawrocki, sw0312.kim, riverful.kim

Avoid dereferencing of NULL f->fmt. Correct size of the allocated
buffer in case the crop rectangle is smaller than the bounds
rectangle (configured with S_FMT). Also remove redundant check
for *num_buffer == 0 as this case is handled in videobuf2.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 drivers/media/video/s5p-fimc/fimc-core.c |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/drivers/media/video/s5p-fimc/fimc-core.c b/drivers/media/video/s5p-fimc/fimc-core.c
index c427edd..85b47a3 100644
--- a/drivers/media/video/s5p-fimc/fimc-core.c
+++ b/drivers/media/video/s5p-fimc/fimc-core.c
@@ -704,22 +704,18 @@ static int fimc_queue_setup(struct vb2_queue *vq, unsigned int *num_buffers,
 	f = ctx_get_frame(ctx, vq->type);
 	if (IS_ERR(f))
 		return PTR_ERR(f);
-
 	/*
 	 * Return number of non-contigous planes (plane buffers)
 	 * depending on the configured color format.
 	 */
-	if (f->fmt)
-		*num_planes = f->fmt->memplanes;
+	if (!f->fmt)
+		return -EINVAL;
 
+	*num_planes = f->fmt->memplanes;
 	for (i = 0; i < f->fmt->memplanes; i++) {
-		sizes[i] = (f->width * f->height * f->fmt->depth[i]) >> 3;
+		sizes[i] = (f->f_width * f->f_height * f->fmt->depth[i]) / 8;
 		allocators[i] = ctx->fimc_dev->alloc_ctx;
 	}
-
-	if (*num_buffers == 0)
-		*num_buffers = 1;
-
 	return 0;
 }
 
-- 
1.7.5.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 5/7] s5p-fimc: Remove empty buf_init operation
  2011-06-02 10:11 [PATCH 0/7] s5p-fimc driver fixes for 3.0 Sylwester Nawrocki
                   ` (2 preceding siblings ...)
  2011-06-02 10:12 ` [PATCH 4/7] s5p-fimc: Fix wrong buffer size in queue_setup Sylwester Nawrocki
@ 2011-06-02 10:12 ` Sylwester Nawrocki
  2011-06-02 10:12 ` [PATCH 6/7] s5p-fimc: Use pix_mp for the color format lookup Sylwester Nawrocki
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Sylwester Nawrocki @ 2011-06-02 10:12 UTC (permalink / raw)
  To: linux-media, linux-samsung-soc
  Cc: m.szyprowski, kyungmin.park, s.nawrocki, sw0312.kim, riverful.kim

The buf_init buffer queue operation is optional and
buffer_init() does nothing, remove it.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 drivers/media/video/s5p-fimc/fimc-capture.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/drivers/media/video/s5p-fimc/fimc-capture.c b/drivers/media/video/s5p-fimc/fimc-capture.c
index 44fc26f..6901643 100644
--- a/drivers/media/video/s5p-fimc/fimc-capture.c
+++ b/drivers/media/video/s5p-fimc/fimc-capture.c
@@ -286,12 +286,6 @@ static int queue_setup(struct vb2_queue *vq, unsigned int *num_buffers,
 	return 0;
 }
 
-static int buffer_init(struct vb2_buffer *vb)
-{
-	/* TODO: */
-	return 0;
-}
-
 static int buffer_prepare(struct vb2_buffer *vb)
 {
 	struct vb2_queue *vq = vb->vb2_queue;
@@ -371,7 +365,6 @@ static struct vb2_ops fimc_capture_qops = {
 	.queue_setup		= queue_setup,
 	.buf_prepare		= buffer_prepare,
 	.buf_queue		= buffer_queue,
-	.buf_init		= buffer_init,
 	.wait_prepare		= fimc_unlock,
 	.wait_finish		= fimc_lock,
 	.start_streaming	= start_streaming,
-- 
1.7.5.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 6/7] s5p-fimc: Use pix_mp for the color format lookup
  2011-06-02 10:11 [PATCH 0/7] s5p-fimc driver fixes for 3.0 Sylwester Nawrocki
                   ` (3 preceding siblings ...)
  2011-06-02 10:12 ` [PATCH 5/7] s5p-fimc: Remove empty buf_init operation Sylwester Nawrocki
@ 2011-06-02 10:12 ` Sylwester Nawrocki
  2011-06-02 10:12 ` [PATCH 7/7] s5p-fimc: Update copyright notices Sylwester Nawrocki
  2011-06-02 13:49 ` [PATCH 1/7] s5p-fimc: Fix possible memory leak during capture devnode registration Sylwester Nawrocki
  6 siblings, 0 replies; 8+ messages in thread
From: Sylwester Nawrocki @ 2011-06-02 10:12 UTC (permalink / raw)
  To: linux-media, linux-samsung-soc
  Cc: m.szyprowski, kyungmin.park, s.nawrocki, sw0312.kim, riverful.kim

With multi-planar formats fmt.pix_mp member of struct v4l2_format
should be used rather than fmt.pix. Fix find_fmt() function to do
the right thing.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 drivers/media/video/s5p-fimc/fimc-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/s5p-fimc/fimc-core.c b/drivers/media/video/s5p-fimc/fimc-core.c
index 85b47a3..873a879 100644
--- a/drivers/media/video/s5p-fimc/fimc-core.c
+++ b/drivers/media/video/s5p-fimc/fimc-core.c
@@ -841,7 +841,7 @@ struct fimc_fmt *find_format(struct v4l2_format *f, unsigned int mask)
 
 	for (i = 0; i < ARRAY_SIZE(fimc_formats); ++i) {
 		fmt = &fimc_formats[i];
-		if (fmt->fourcc == f->fmt.pix.pixelformat &&
+		if (fmt->fourcc == f->fmt.pix_mp.pixelformat &&
 		   (fmt->flags & mask))
 			break;
 	}
-- 
1.7.5.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 7/7] s5p-fimc: Update copyright notices
  2011-06-02 10:11 [PATCH 0/7] s5p-fimc driver fixes for 3.0 Sylwester Nawrocki
                   ` (4 preceding siblings ...)
  2011-06-02 10:12 ` [PATCH 6/7] s5p-fimc: Use pix_mp for the color format lookup Sylwester Nawrocki
@ 2011-06-02 10:12 ` Sylwester Nawrocki
  2011-06-02 13:49 ` [PATCH 1/7] s5p-fimc: Fix possible memory leak during capture devnode registration Sylwester Nawrocki
  6 siblings, 0 replies; 8+ messages in thread
From: Sylwester Nawrocki @ 2011-06-02 10:12 UTC (permalink / raw)
  To: linux-media, linux-samsung-soc
  Cc: m.szyprowski, kyungmin.park, s.nawrocki, sw0312.kim, riverful.kim

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 drivers/media/video/s5p-fimc/fimc-capture.c |    4 ++--
 drivers/media/video/s5p-fimc/fimc-core.c    |    7 +++----
 drivers/media/video/s5p-fimc/fimc-core.h    |    4 +---
 3 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/drivers/media/video/s5p-fimc/fimc-capture.c b/drivers/media/video/s5p-fimc/fimc-capture.c
index 6901643..81b4a82 100644
--- a/drivers/media/video/s5p-fimc/fimc-capture.c
+++ b/drivers/media/video/s5p-fimc/fimc-capture.c
@@ -1,7 +1,7 @@
 /*
- * Samsung S5P SoC series camera interface (camera capture) driver
+ * Samsung S5P/EXYNOS4 SoC series camera interface (camera capture) driver
  *
- * Copyright (c) 2010 Samsung Electronics Co., Ltd
+ * Copyright (C) 2010 - 2011 Samsung Electronics Co., Ltd.
  * Author: Sylwester Nawrocki, <s.nawrocki@samsung.com>
  *
  * This program is free software; you can redistribute it and/or modify
diff --git a/drivers/media/video/s5p-fimc/fimc-core.c b/drivers/media/video/s5p-fimc/fimc-core.c
index 873a879..bdf19ad 100644
--- a/drivers/media/video/s5p-fimc/fimc-core.c
+++ b/drivers/media/video/s5p-fimc/fimc-core.c
@@ -1,9 +1,8 @@
 /*
- * S5P camera interface (video postprocessor) driver
+ * Samsung S5P/EXYNOS4 SoC series camera interface (video postprocessor) driver
  *
- * Copyright (c) 2010 Samsung Electronics Co., Ltd
- *
- * Sylwester Nawrocki, <s.nawrocki@samsung.com>
+ * Copyright (C) 2010-2011 Samsung Electronics Co., Ltd.
+ * Contact: Sylwester Nawrocki, <s.nawrocki@samsung.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published
diff --git a/drivers/media/video/s5p-fimc/fimc-core.h b/drivers/media/video/s5p-fimc/fimc-core.h
index 8f0f168..1f70772 100644
--- a/drivers/media/video/s5p-fimc/fimc-core.h
+++ b/drivers/media/video/s5p-fimc/fimc-core.h
@@ -1,7 +1,5 @@
 /*
- * Copyright (c) 2010 Samsung Electronics
- *
- * Sylwester Nawrocki, <s.nawrocki@samsung.com>
+ * Copyright (C) 2010 - 2011 Samsung Electronics Co., Ltd.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
-- 
1.7.5.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 1/7] s5p-fimc: Fix possible memory leak during capture devnode registration
  2011-06-02 10:11 [PATCH 0/7] s5p-fimc driver fixes for 3.0 Sylwester Nawrocki
                   ` (5 preceding siblings ...)
  2011-06-02 10:12 ` [PATCH 7/7] s5p-fimc: Update copyright notices Sylwester Nawrocki
@ 2011-06-02 13:49 ` Sylwester Nawrocki
  6 siblings, 0 replies; 8+ messages in thread
From: Sylwester Nawrocki @ 2011-06-02 13:49 UTC (permalink / raw)
  To: linux-media, linux-samsung-soc
  Cc: m.szyprowski, kyungmin.park, s.nawrocki, sw0312.kim, riverful.kim

Add missing kfree on the error path.

Reported-by: Tomasz Stanislawski <t.stanislaws@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 drivers/media/video/s5p-fimc/fimc-capture.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/media/video/s5p-fimc/fimc-capture.c b/drivers/media/video/s5p-fimc/fimc-capture.c
index d142b40..7e66455 100644
--- a/drivers/media/video/s5p-fimc/fimc-capture.c
+++ b/drivers/media/video/s5p-fimc/fimc-capture.c
@@ -903,6 +903,7 @@ err_vd_reg:
 err_v4l2_reg:
 	v4l2_device_unregister(v4l2_dev);
 err_info:
+	kfree(ctx);
 	dev_err(&fimc->pdev->dev, "failed to install\n");
 	return ret;
 }
-- 
1.7.5.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-06-02 13:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-02 10:11 [PATCH 0/7] s5p-fimc driver fixes for 3.0 Sylwester Nawrocki
2011-06-02 10:11 ` [PATCH 2/7] s5p-fimc: Fix V4L2_PIX_FMT_RGB565X description Sylwester Nawrocki
2011-06-02 10:12 ` [PATCH 3/7] s5p-fimc: Fix data structures documentation and cleanup debug trace Sylwester Nawrocki
2011-06-02 10:12 ` [PATCH 4/7] s5p-fimc: Fix wrong buffer size in queue_setup Sylwester Nawrocki
2011-06-02 10:12 ` [PATCH 5/7] s5p-fimc: Remove empty buf_init operation Sylwester Nawrocki
2011-06-02 10:12 ` [PATCH 6/7] s5p-fimc: Use pix_mp for the color format lookup Sylwester Nawrocki
2011-06-02 10:12 ` [PATCH 7/7] s5p-fimc: Update copyright notices Sylwester Nawrocki
2011-06-02 13:49 ` [PATCH 1/7] s5p-fimc: Fix possible memory leak during capture devnode registration Sylwester Nawrocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.