AMD IOMMU: check for invalid device pointers
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 4 Sep 2008 13:04:26 +0000 (15:04 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 19 Sep 2008 10:59:03 +0000 (12:59 +0200)
commitdbcc112e3b5367e81a845b082933506b0ff1d1e2
treeb5537684c5ea8d354d5e94b358741f4db3e05d7c
parent07a2c01a0c2a0cb4581a67d50d4f17cb4d2457c4
AMD IOMMU: check for invalid device pointers

Currently AMD IOMMU code triggers a BUG_ON if NULL is passed as the
device. This is inconsistent with other IOMMU implementations.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/amd_iommu.c