Re: [PATCH] powerpc/pseries: Add a null judgment after iommu_pseries_alloc_group

2022-11-24 Thread Michael Ellerman
Deming Wang writes: > We should avoid use the return value directly after call > iommu_pseries_alloc_group. Because it_may return a null. We should probably at least print a warning in that case though? Otherwise someone's PCI device will not work with no indication why, or more likely the kern

[PATCH] powerpc/pseries: Add a null judgment after iommu_pseries_alloc_group

2022-07-01 Thread Deming Wang
We should avoid use the return value directly after call iommu_pseries_alloc_group. Because it_may return a null. Signed-off-by: Deming Wang --- arch/powerpc/platforms/pseries/iommu.c | 12 1 file changed, 12 insertions(+) diff --git a/arch/powerpc/platforms/pseries/iommu.c b/arc