mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 13:34:10 +08:00
iommu/amd: Initialize devid variable before using it
Commit2a0cb4e2d4
("iommu/amd: Add new map for storing IVHD dev entry type HID") added a call to DUMP_printk in init_iommu_from_acpi() which used the value of devid before this variable was initialized. Fixes:2a0cb4e2d4
('iommu/amd: Add new map for storing IVHD dev entry type HID') Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org> Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
parent
3bd4f9112f
commit
6082ee72e9
@ -1107,13 +1107,13 @@ static int __init init_iommu_from_acpi(struct amd_iommu *iommu,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
devid = e->devid;
|
||||||
DUMP_printk(" DEV_ACPI_HID(%s[%s])\t\tdevid: %02x:%02x.%x\n",
|
DUMP_printk(" DEV_ACPI_HID(%s[%s])\t\tdevid: %02x:%02x.%x\n",
|
||||||
hid, uid,
|
hid, uid,
|
||||||
PCI_BUS_NUM(devid),
|
PCI_BUS_NUM(devid),
|
||||||
PCI_SLOT(devid),
|
PCI_SLOT(devid),
|
||||||
PCI_FUNC(devid));
|
PCI_FUNC(devid));
|
||||||
|
|
||||||
devid = e->devid;
|
|
||||||
flags = e->flags;
|
flags = e->flags;
|
||||||
|
|
||||||
ret = add_acpi_hid_device(hid, uid, &devid, false);
|
ret = add_acpi_hid_device(hid, uid, &devid, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user