HomeFreeBSD

nvdimm: Fix error path mis-free

Description

nvdimm: Fix error path mis-free

(diff applied manually due to refactoring)

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

(cherry picked from commit 31f1c8fc84c850d73e74781126e12efceb50032b)

Details

Provenance
cemAuthored on Oct 2 2019, 7:13 PM
rpokalaCommitted on Feb 11 2021, 5:03 AM
Reviewer
kib
Differential Revision
D21871: nvdimm: Fix error path mis-free
Parents
rG42167258150e: Upgrade to OpenPAM Tabebuia.
Branches
Unknown
Tags
Unknown