HomeFreeBSD

nandfs_meta_bread() calls bread() which can set bp to NULL in some

Description

nandfs_meta_bread() calls bread() which can set bp to NULL in some
error cases. Calling brelse() with a NULL pointer is not allowed,
so only call brelse() when the bp is non-NULL.

Reported by: Maxime Villard (reported as uninitialized variable)

Details

Provenance
impAuthored on
Parents
rS279501: Don't leak 'used' in a few error cases.
Branches
Unknown
Tags
Unknown

Event Timeline