]> git.baikalelectronics.ru Git - kernel.git/commit
amd_iommu: do not dereference a NULL pointer address.
authorMaurizio Lombardi <mlombard@redhat.com>
Thu, 11 Sep 2014 10:28:03 +0000 (12:28 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 25 Sep 2014 13:58:42 +0000 (15:58 +0200)
commit98b849f33ab1bab032bfd70af2150005c3105cd5
tree59c26138350670efae84d3bd5dae773a543a01bf
parent73c8c97aff07548b2a5925f62feafa843e50775a
amd_iommu: do not dereference a NULL pointer address.

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 <mlombard@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c