Skip to content
Snippets Groups Projects
Commit ec2cb278 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "lrdp_v2 : fix iommu page table parsing"

parents 190dd6a5 525a2435
No related branches found
No related tags found
No related merge requests found
......@@ -84,8 +84,12 @@ class IommuLib(object):
'struct iommu_group', 'devices')
dev = self.ramdump.read_structure_field(
dev_list, 'struct list_head', 'next')
client_name = self.ramdump.read_structure_cstring(
dev, 'struct iommu_device', 'name')
if self.ramdump.kernel_version >= (4, 14):
client_name = self.ramdump.read_structure_cstring(
dev, 'struct group_device', 'name')
else:
client_name = self.ramdump.read_structure_cstring(
dev, 'struct iommu_device', 'name')
else:
"""Older kernel versions have the field 'dev'
instead of 'iommu_group'.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment