From mboxrd@z Thu Jan 1 00:00:00 1970
From: Philipp Zabel
Subject: Re: [PATCH -next] [media] coda: fix missing unlock on error in
coda_stop_streaming()
Date: Tue, 18 Jun 2013 12:03:26 +0200
Message-ID: <1371549806.4275.6.camel@pizza.hi.pengutronix.de>
References:
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Return-path:
In-Reply-To:
Sender: linux-media-owner@vger.kernel.org
To: Wei Yongjun
Cc: mchehab@redhat.com, grant.likely@linaro.org, rob.herring@calxeda.com, javier.martin@vista-silicon.com, k.debski@samsung.com, hans.verkuil@cisco.com, yongjun_wei@trendmicro.com.cn, linux-media@vger.kernel.org, devicetree-discuss@lists.ozlabs.org
List-Id: devicetree@vger.kernel.org
Am Dienstag, den 18.06.2013, 13:00 +0800 schrieb Wei Yongjun:
> From: Wei Yongjun
>
> Add the missing unlock before return from function coda_stop_streaming()
> in the error handling case.
>
> Signed-off-by: Wei Yongjun
> ---
> drivers/media/platform/coda.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c
> index df4ada88..2c3cd17 100644
> --- a/drivers/media/platform/coda.c
> +++ b/drivers/media/platform/coda.c
> @@ -1347,6 +1347,7 @@ static int coda_stop_streaming(struct vb2_queue *q)
> if (coda_command_sync(ctx, CODA_COMMAND_SEQ_END)) {
> v4l2_err(&dev->v4l2_dev,
> "CODA_COMMAND_SEQ_END failed\n");
> + mutex_unlock(&dev->coda_mutex);
> return -ETIMEDOUT;
> }
> mutex_unlock(&dev->coda_mutex);
>
>
Thanks! If you don't mind, I'll integrate this change into the "[media]
coda: add CODA7541 decoding support" for v2.
regards
Philipp