Commit d8ed430e authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by David Mosberger

[PATCH] ia64: sba_iommu vendor/function for unknown IOCs

Include id when encountering unknown IOC.
parent 374067ba
...@@ -1669,8 +1669,15 @@ ioc_init(u64 hpa, void *handle) ...@@ -1669,8 +1669,15 @@ ioc_init(u64 hpa, void *handle)
} }
} }
if (!ioc->name) if (!ioc->name) {
ioc->name = kmalloc(24, GFP_KERNEL);
if (ioc->name)
sprintf(ioc->name, "Unknown (%04x:%04x)",
ioc->func_id & 0xFFFF,
(ioc->func_id >> 16) & 0xFFFF);
else
ioc->name = "Unknown"; ioc->name = "Unknown";
}
ioc_iova_init(ioc); ioc_iova_init(ioc);
ioc_resource_init(ioc); ioc_resource_init(ioc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment