RE: [PATCH] media: s5p_mfc: Release ctx->ctx if failed to allocate ctx->shm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Zhaowei,

Please provide a short and informative commit description.

Best wishes,
-- 
Kamil Debski
Samsung R&D Institute Poland


> -----Original Message-----
> From: Zhaowei Yuan [mailto:zhaowei.yuan@xxxxxxxxxxx]
> Sent: Tuesday, August 05, 2014 9:13 AM
> To: linux-media@xxxxxxxxxxxxxxx; k.debski@xxxxxxxxxxx;
> m.chehab@xxxxxxxxxxx; kyungmin.park@xxxxxxxxxxx; jtp.park@xxxxxxxxxxx
> Cc: linux-samsung-soc@xxxxxxxxxxxxxxx
> Subject: [PATCH] media: s5p_mfc: Release ctx->ctx if failed to allocate
> ctx->shm
> 
> Signed-off-by: Zhaowei Yuan <zhaowei.yuan@xxxxxxxxxxx>
> ---
>  drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c |    1 +
>  1 file changed, 1 insertion(+)
>  mode change 100644 => 100755 drivers/media/platform/s5p-
> mfc/s5p_mfc_opr_v5.c
> 
> diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c
> b/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c
> old mode 100644
> new mode 100755
> index 58ec7bb..dc00aea
> --- a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c
> +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c
> @@ -228,6 +228,7 @@ static int s5p_mfc_alloc_instance_buffer_v5(struct
> s5p_mfc_ctx *ctx)
>  	ret = s5p_mfc_alloc_priv_buf(dev->mem_dev_l, &ctx->shm);
>  	if (ret) {
>  		mfc_err("Failed to allocate shared memory buffer\n");
> +		s5p_mfc_release_priv_buf(dev->mem_dev_l, &ctx->ctx);
>  		return ret;
>  	}
> 
> --
> 1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux