From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
To: Stanimir Varbanov <svarbanov@mm-sol.com>,
Stanimir Varbanov <stanimir.varbanov@linaro.org>,
Hans Verkuil <hverkuil@xs4all.nl>,
Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] venus: fix copy/paste error in return_buf_error
Date: Tue, 22 Aug 2017 14:22:35 -0500 [thread overview]
Message-ID: <aa12d8d5-fa8f-7dc7-bdbe-68c53dfcfb1a@embeddedor.com> (raw)
In-Reply-To: <ba079222-f2e2-2988-b028-f996a19a7247@mm-sol.com>
On 08/21/2017 04:14 AM, Stanimir Varbanov wrote:
> Thanks Gustavo!
>
Glad to help. :)
> On 08/18/2017 07:07 PM, Gustavo A. R. Silva wrote:
>> Call function v4l2_m2m_dst_buf_remove_by_buf() instead of
>> v4l2_m2m_src_buf_remove_by_buf()
>>
>> Addresses-Coverity-ID: 1415317
>> Cc: Stanimir Varbanov <stanimir.varbanov@linaro.org>
>> Cc: Hans Verkuil <hverkuil@xs4all.nl>
>> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
>> ---
>> Changes in v2:
>> Stanimir Varbanov confirmed this is a bug. The correct fix is to call
>> function v4l2_m2m_dst_buf_remove_by_buf instead of function
>> v4l2_m2m_src_buf_remove_by_buf in the _else_ branch.
>>
>> drivers/media/platform/qcom/venus/helpers.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Acked-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
>
>>
>> diff --git a/drivers/media/platform/qcom/venus/helpers.c b/drivers/media/platform/qcom/venus/helpers.c
>> index 5f4434c..2d61879 100644
>> --- a/drivers/media/platform/qcom/venus/helpers.c
>> +++ b/drivers/media/platform/qcom/venus/helpers.c
>> @@ -243,7 +243,7 @@ static void return_buf_error(struct venus_inst *inst,
>> if (vbuf->vb2_buf.type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE)
>> v4l2_m2m_src_buf_remove_by_buf(m2m_ctx, vbuf);
>> else
>> - v4l2_m2m_src_buf_remove_by_buf(m2m_ctx, vbuf);
>> + v4l2_m2m_dst_buf_remove_by_buf(m2m_ctx, vbuf);
>>
>> v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR);
>> }
>>
>
--
Gustavo A. R. Silva
next prev parent reply other threads:[~2017-08-22 20:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-17 23:12 [PATCH] media: venus: fix duplicated code for different branches Gustavo A. R. Silva
2017-08-18 6:57 ` Hans Verkuil
2017-08-18 7:52 ` Stanimir Varbanov
2017-08-18 15:55 ` Gustavo A. R. Silva
2017-08-18 16:07 ` [PATCH v2] venus: fix copy/paste error in return_buf_error Gustavo A. R. Silva
2017-08-21 9:14 ` Stanimir Varbanov
2017-08-22 19:22 ` Gustavo A. R. Silva [this message]
2017-08-23 12:59 ` Stanimir Varbanov
2017-08-23 15:14 ` Stanimir Varbanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aa12d8d5-fa8f-7dc7-bdbe-68c53dfcfb1a@embeddedor.com \
--to=gustavo@embeddedor.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=stanimir.varbanov@linaro.org \
--cc=svarbanov@mm-sol.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox