mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
nvdimm: Fix error path mis-free
Regression introduced in r343629 when malloc result was renamed from spa to spa_mapping and the 'spa' name was instead used to iterate a table, but the free() target was not updated. Reviewed by: kib, scottph Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D21871
This commit is contained in:
parent
982f1fc2d8
commit
31f1c8fc84
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ nvdimm_root_create_spas(struct nvdimm_root_dev *dev, ACPI_TABLE_NFIT *nfitbl)
|
|||
error = nvdimm_spa_init(spa_mapping, *spa, spa_type);
|
||||
if (error != 0) {
|
||||
nvdimm_spa_fini(spa_mapping);
|
||||
free(spa, M_NVDIMM_ACPI);
|
||||
free(spa_mapping, M_NVDIMM_ACPI);
|
||||
break;
|
||||
}
|
||||
nvdimm_create_namespaces(spa_mapping, nfitbl);
|
||||
|
|
|
|||
Loading…
Reference in a new issue