From: Joerg Roedel <joro@8bytes.org>
To: Yang Yingliang <yangyingliang@huawei.com>
Cc: iommu@lists.linux.dev, linux-mediatek@lists.infradead.org,
yong.wu@mediatek.com, will@kernel.org, robin.murphy@arm.com,
matthias.bgg@gmail.com
Subject: Re: [PATCH] iommu/mediatek: check return value after calling platform_get_resource()
Date: Sat, 19 Nov 2022 10:09:48 +0100 [thread overview]
Message-ID: <Y3idXEvo8/uBl4UV@8bytes.org> (raw)
In-Reply-To: <20221029103550.3774365-1-yangyingliang@huawei.com>
On Sat, Oct 29, 2022 at 06:35:50PM +0800, Yang Yingliang wrote:
> platform_get_resource() may return NULL pointer, we need check its
> return value to avoid null-ptr-deref in resource_size().
>
> Fixes: 42d57fc58aeb ("iommu/mediatek: Initialise/Remove for multi bank dev")
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
> drivers/iommu/mtk_iommu.c | 2 ++
> 1 file changed, 2 insertions(+)
Applied, thanks.
next prev parent reply other threads:[~2022-11-19 9:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-29 10:35 [PATCH] iommu/mediatek: check return value after calling platform_get_resource() Yang Yingliang
2022-11-07 16:03 ` Matthias Brugger
2022-11-19 9:09 ` Joerg Roedel [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-07-04 7:59 Yang Yingliang via iommu
2022-07-04 7:59 ` Yang Yingliang
2022-07-04 7:59 ` Yang Yingliang
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=Y3idXEvo8/uBl4UV@8bytes.org \
--to=joro@8bytes.org \
--cc=iommu@lists.linux.dev \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=robin.murphy@arm.com \
--cc=will@kernel.org \
--cc=yangyingliang@huawei.com \
--cc=yong.wu@mediatek.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.