diff --git a/drivers/cxl/core/mbox.c b/drivers/cxl/core/mbox.c index 891a213ce7be..020d04c05ac4 100644 --- a/drivers/cxl/core/mbox.c +++ b/drivers/cxl/core/mbox.c @@ -1702,6 +1702,7 @@ int cxl_dev_dc_identify(struct cxl_mailbox *mbox, /* Read and check all partition information for validity and potential * debugging; see debug output in cxl_dc_check() */ start_partition = 0; + num_partitions = 0; do { int rc, i, j;