From: "weiyongjun (A)" <weiyongjun1@huawei.com>
To: "Dmitry Osipenko" <digetx@gmail.com>,
"Mauro Carvalho Chehab" <mchehab+huawei@kernel.org>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Thierry Reding" <thierry.reding@gmail.com>,
"Jonathan Hunter" <jonathanh@nvidia.com>,
"Philipp Zabel" <p.zabel@pengutronix.de>,
"Sumit Semwal" <sumit.semwal@linaro.org>,
"Christian König" <christian.koenig@amd.com>
Cc: linux-staging@lists.linux.dev, kernel-janitors@vger.kernel.org,
dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org,
Hulk Robot <hulkci@huawei.com>,
linux-tegra@vger.kernel.org, linux-media@vger.kernel.org
Subject: Re: [PATCH -next] media: staging: tegra-vde: Fix error return code in tegra_vde_probe()
Date: Mon, 24 May 2021 21:36:26 +0800 [thread overview]
Message-ID: <20768acd-2ab5-2e7e-263d-d3176268412e@huawei.com> (raw)
In-Reply-To: <1e05ad22-c4d8-c443-5377-7cd9db024cb9@gmail.com>
> 24.05.2021 16:27, Dmitry Osipenko пишет:
>> 24.05.2021 16:35, Wei Yongjun пишет:
>>> Fix to return a negative error code from the error handling
>>> case instead of 0, as done elsewhere in this function.
>>>
>>> Fixes: dc8276b78917 ("staging: media: tegra-vde: use pm_runtime_resume_and_get()")
>>> Reported-by: Hulk Robot <hulkci@huawei.com>
>>> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
>>> ---
>>> drivers/staging/media/tegra-vde/vde.c | 3 ++-
>>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/staging/media/tegra-vde/vde.c b/drivers/staging/media/tegra-vde/vde.c
>>> index e025b69776f2..321d14ba2e56 100644
>>> --- a/drivers/staging/media/tegra-vde/vde.c
>>> +++ b/drivers/staging/media/tegra-vde/vde.c
>>> @@ -1071,7 +1071,8 @@ static int tegra_vde_probe(struct platform_device *pdev)
>>> * power-cycle it in order to put hardware into a predictable lower
>>> * power state.
>>> */
>>> - if (pm_runtime_resume_and_get(dev) < 0)
>>> + err = pm_runtime_resume_and_get(dev);
>>> + if (err < 0)
>>> goto err_pm_runtime;
>>>
>>> pm_runtime_put(dev);
>>>
>> pm_runtime_resume_and_get() doesn't return positive values, the previous
>> variant was okay.
>>
>> You should also version your patches and add changelog.
>>
> Ah, sorry. The other patch is from Yang Yingliang.
Sorry, it is my bad. I missed that patch.
Regards,
Wei Yongjun
prev parent reply other threads:[~2021-05-24 13:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-24 13:35 [PATCH -next] media: staging: tegra-vde: Fix error return code in tegra_vde_probe() Wei Yongjun
2021-05-24 13:27 ` Dmitry Osipenko
2021-05-24 13:29 ` Dmitry Osipenko
2021-05-24 13:36 ` weiyongjun (A) [this message]
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=20768acd-2ab5-2e7e-263d-d3176268412e@huawei.com \
--to=weiyongjun1@huawei.com \
--cc=christian.koenig@amd.com \
--cc=digetx@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=gregkh@linuxfoundation.org \
--cc=hulkci@huawei.com \
--cc=jonathanh@nvidia.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linaro-mm-sig@lists.linaro.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=linux-tegra@vger.kernel.org \
--cc=mchehab+huawei@kernel.org \
--cc=mchehab@kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=sumit.semwal@linaro.org \
--cc=thierry.reding@gmail.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;
as well as URLs for NNTP newsgroup(s).