diff options
| author | Andy Shevchenko <[email protected]> | 2017-02-15 14:42:21 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2017-02-22 11:25:31 +0000 |
| commit | c37a01779b3954d9c8f9ac4f663a03c11f69fded (patch) | |
| tree | ee7cdceae13d62f25495fa77591b2ea0ab7cd19e /scripts/gcc-plugins | |
| parent | Merge tag 'iommu-updates-v4.11' of git://git.kernel.org/pub/scm/linux/kernel/... (diff) | |
| download | kernel-c37a01779b3954d9c8f9ac4f663a03c11f69fded.tar.gz kernel-c37a01779b3954d9c8f9ac4f663a03c11f69fded.zip | |
iommu/vt-d: Fix crash on boot when DMAR is disabled
By default CONFIG_INTEL_IOMMU_DEFAULT_ON is not set and thus
dmar_disabled variable is set.
Intel IOMMU driver based on above doesn't set intel_iommu_enabled
variable.
The commit b0119e870837 ("iommu: Introduce new 'struct iommu_device'")
mistakenly assumes it never happens and tries to unregister not ever
registered resources, which crashes the kernel at boot time:
BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
IP: iommu_device_unregister+0x31/0x60
Make unregister procedure conditional in free_iommu().
Fixes: b0119e870837 ("iommu: Introduce new 'struct iommu_device'")
Cc: Joerg Roedel <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions
