summaryrefslogtreecommitdiff
path: root/drivers/acpi/apei/einj-cxl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/apei/einj-cxl.c')
-rw-r--r--drivers/acpi/apei/einj-cxl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/apei/einj-cxl.c b/drivers/acpi/apei/einj-cxl.c
index 4f81a119ec08..a4e709937236 100644
--- a/drivers/acpi/apei/einj-cxl.c
+++ b/drivers/acpi/apei/einj-cxl.c
@@ -63,7 +63,7 @@ static int cxl_dport_get_sbdf(struct pci_dev *dport_dev, u64 *sbdf)
seg = bridge->domain_nr;
bus = pbus->number;
- *sbdf = (seg << 24) | (bus << 16) | dport_dev->devfn;
+ *sbdf = (seg << 24) | (bus << 16) | (dport_dev->devfn << 8);
return 0;
}