HomeFreeBSD

mmc_da: fix memory leak in sddaregister()

Description

mmc_da: fix memory leak in sddaregister()

In case we are failing to allocate mmcdata, we are returning with
a softc allocated but not attached to anything and thus leak the
memory.

Reviewed by: scottl
MFC after: 2 weeks
X-MFC: only if we also mfc other mmccam changes?
Differential Revision: https://reviews.freebsd.org/D25987

Details

Provenance
bzAuthored on Aug 7 2020, 7:58 PM
Parents
rG1ff80a3400f4: vfs: release the interlock after failing to set VHOLD_NO_SMR
Branches
Unknown
Tags
Unknown

Event Timeline