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
Reviewer
scottl
Differential Revision
D25987: Fix memory leak in sddaregister().
Parents
rS364042: vfs: release the interlock after failing to set VHOLD_NO_SMR
Branches
Unknown
Tags
Unknown