summaryrefslogtreecommitdiff
path: root/drivers/cxl/acpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cxl/acpi.c')
-rw-r--r--drivers/cxl/acpi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/cxl/acpi.c b/drivers/cxl/acpi.c
index ab2b76532272..5d848b77d8e8 100644
--- a/drivers/cxl/acpi.c
+++ b/drivers/cxl/acpi.c
@@ -342,7 +342,9 @@ static int add_host_bridge_dport(struct device *match, void *arg)
return 0;
}
+ cxl_device_lock(&root_port->dev);
rc = cxl_add_dport(root_port, match, uid, ctx.chbcr);
+ cxl_device_unlock(&root_port->dev);
if (rc) {
dev_err(host, "failed to add downstream port: %s\n",
dev_name(match));