]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitb7a42b9d38063e58cdf201c575da75943f71051e
treefef44bb620a0a59c7de196a26f04b14df33c0ca0
parenta7fdb6e648fb10a4174483b5fc4dac9c25bd2093
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: 39ab9555c241 ('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