HomeFreeBSD

Fix clearing geom metadata if DIOCGSECTORSIZE fails

Description

Fix clearing geom metadata if DIOCGSECTORSIZE fails

An unhandled error case would result in passing SIZE_MAX to malloc.
While I'm here, remove an unnecessary NULL check before free

Reported by: Coverity
CID: 1017793
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp

Details

Provenance
asomersAuthored on
Parents
rS316529: Handle possible vnode reclamation after ncl_vinvalbuf() call.
Branches
Unknown
Tags
Unknown