[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210128125429.GO32671@8bytes.org>
Date: Thu, 28 Jan 2021 13:54:29 +0100
From: Joerg Roedel <joro@...tes.org>
To: Shameer Kolothum <shameerali.kolothum.thodi@...wei.com>
Cc: linux-kernel@...r.kernel.org, iommu@...ts.linux-foundation.org,
jean-philippe@...aro.org, will@...nel.org,
prime.zeng@...ilicon.com, linuxarm@...neuler.org
Subject: Re: [PATCH] iommu: Check dev->iommu in iommu_dev_xxx functions
On Tue, Jan 26, 2021 at 01:06:29PM +0000, Shameer Kolothum wrote:
> The device iommu probe/attach might have failed leaving dev->iommu
> to NULL and device drivers may still invoke these functions resulting
> a crash in iommu vendor driver code. Hence make sure we check that.
>
> Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@...wei.com>
> ---
> drivers/iommu/iommu.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
> index ffeebda8d6de..cb68153c5cc0 100644
> --- a/drivers/iommu/iommu.c
> +++ b/drivers/iommu/iommu.c
> @@ -2867,7 +2867,7 @@ bool iommu_dev_has_feature(struct device *dev, enum iommu_dev_features feat)
This function has been removed from the iommu-tree. Can you please
rebase this patch against the latest 'core' branch when I pushed it
later this week (maybe even later today)?
A Fixes tag would be nice too.
Regards,
Joerg
Powered by blists - more mailing lists