Re: [PATCH] iommu: Check dev->iommu in iommu_dev_xxx functions

2021-01-28 Thread Joerg Roedel
On Tue, Jan 26, 2021 at 01:06:29PM +, 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: Sh

Re: [PATCH] iommu: Check dev->iommu in iommu_dev_xxx functions

2021-01-26 Thread Robin Murphy
...@kernel.org; linux...@openeuler.org; Zengtao (B) Subject: Re: [PATCH] iommu: Check dev->iommu in iommu_dev_xxx functions On Tue, 26 Jan 2021 13:06:29 + Shameer Kolothum wrote: The device iommu probe/attach might have failed leaving dev->iommu to NULL and device drivers may still

RE: [PATCH] iommu: Check dev->iommu in iommu_dev_xxx functions

2021-01-26 Thread Shameerali Kolothum Thodi
x...@openeuler.org; Zengtao > (B) > Subject: Re: [PATCH] iommu: Check dev->iommu in iommu_dev_xxx functions > > On Tue, 26 Jan 2021 13:06:29 + > Shameer Kolothum wrote: > > > The device iommu probe/attach might have failed leaving dev->iommu to > > NULL and devic

Re: [PATCH] iommu: Check dev->iommu in iommu_dev_xxx functions

2021-01-26 Thread Robin Murphy
On Tue, 26 Jan 2021 13:06:29 + 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

[PATCH] iommu: Check dev->iommu in iommu_dev_xxx functions

2021-01-26 Thread Shameer Kolothum
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 --- drivers/iommu/iommu.c | 8 1 file changed, 4 i