From: Bjorn Andersson <bjorn.andersson@linaro.org>
To: Tang Bin <tangbin@cmss.chinamobile.com>
Cc: robdclark@gmail.com, agross@kernel.org, joro@8bytes.org,
linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] iommu/qcom:fix local_base status check
Date: Wed, 1 Apr 2020 16:36:42 -0700 [thread overview]
Message-ID: <20200401233642.GI254911@minitux> (raw)
In-Reply-To: <20200401152008.16740-1-tangbin@cmss.chinamobile.com>
On Wed 01 Apr 08:20 PDT 2020, Tang Bin wrote:
> Release resources when exiting on error.
>
> Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
> ---
> drivers/iommu/qcom_iommu.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/iommu/qcom_iommu.c b/drivers/iommu/qcom_iommu.c
> index 4328da0b0..d4ec38b1e 100644
> --- a/drivers/iommu/qcom_iommu.c
> +++ b/drivers/iommu/qcom_iommu.c
> @@ -815,6 +815,8 @@ static int qcom_iommu_device_probe(struct platform_device *pdev)
> res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> if (res)
> qcom_iommu->local_base = devm_ioremap_resource(dev, res);
> + if (IS_ERR(qcom_iommu->local_base))
Good catch! But while it works, this is not under the if (res). So
please add some {} around this chunk.
Regards,
Bjorn
> + return PTR_ERR(qcom_iommu->local_base);
>
> qcom_iommu->iface_clk = devm_clk_get(dev, "iface");
> if (IS_ERR(qcom_iommu->iface_clk)) {
> --
> 2.20.1.windows.1
>
>
>
next prev parent reply other threads:[~2020-04-01 23:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-01 15:20 [PATCH] iommu/qcom:fix local_base status check Tang Bin
2020-04-01 23:36 ` kbuild test robot
2020-04-01 23:36 ` Bjorn Andersson [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-04-02 6:33 Tang Bin
2020-04-02 6:33 ` Tang Bin
2020-04-02 6:45 ` Bjorn Andersson
2020-04-02 6:45 ` Bjorn Andersson
2020-04-16 6:42 ` Tang Bin
2020-04-16 6:42 ` Tang Bin
2020-04-18 11:54 ` Joerg Roedel
2020-04-18 11:54 ` Joerg Roedel
2020-04-18 13:08 ` Tang Bin
2020-04-18 13:08 ` Tang Bin
2020-04-16 10:05 ` Robin Murphy
2020-04-16 10:05 ` Robin Murphy
2020-04-16 10:12 ` Tang Bin
2020-04-16 10:12 ` Tang Bin
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=20200401233642.GI254911@minitux \
--to=bjorn.andersson@linaro.org \
--cc=agross@kernel.org \
--cc=joro@8bytes.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robdclark@gmail.com \
--cc=tangbin@cmss.chinamobile.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 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.