Re: [PATCH] amd_iommu: do not dereference a NULL pointer address.

2014-09-25 Thread Joerg Roedel
On Thu, Sep 11, 2014 at 12:28:03PM +0200, Maurizio Lombardi wrote: under low memory conditions, alloc_pte() may return a NULL pointer. iommu_map_page() does not check it and will panic the system. Signed-off-by: Maurizio Lombardi mlomb...@redhat.com --- drivers/iommu/amd_iommu.c | 3 +++

[PATCH] amd_iommu: do not dereference a NULL pointer address.

2014-09-11 Thread Maurizio Lombardi
under low memory conditions, alloc_pte() may return a NULL pointer. iommu_map_page() does not check it and will panic the system. Signed-off-by: Maurizio Lombardi mlomb...@redhat.com --- drivers/iommu/amd_iommu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/iommu/amd_iommu.c