]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Fix crash when accessing AMD-Vi sysfs entries
authorJoerg Roedel <jroedel@suse.de>
Tue, 28 Feb 2017 12:57:18 +0000 (13:57 +0100)
committerJoerg Roedel <jroedel@suse.de>
Tue, 28 Feb 2017 14:48:23 +0000 (15:48 +0100)
commitb620560021f1f0c8fb49d2a5dd6475aeb4b0668b
treefef44bb620a0a59c7de196a26f04b14df33c0ca0
parentea9b28ce5c9af1c7101a009280601515fe8121fb
iommu/amd: Fix crash when accessing AMD-Vi sysfs entries

The link between the iommu sysfs-device and the struct
amd_iommu is no longer stored as driver-data. Update the
code to the new correct way of getting from device to
amd_iommu.

Reported-by: Dave Jones <davej@codemonkey.org.uk>
Fixes: 5c5bc828669e ('iommu: Add sysfs bindings for struct iommu_device')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu_init.c
drivers/iommu/amd_iommu_types.h