HomeFreeBSD

makefs: do not call brelse if bread returns an error

Description

makefs: do not call brelse if bread returns an error

If bread returns an error there is no bp to brelse. One of these
changes was taken from NetBSD commit 0a62dad69f62 ("This works well
enough to populate..."), the rest were found by looking for the same
pattern.

Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39069

Details

Provenance
emasteAuthored on Mar 13 2023, 8:51 PM
Reviewer
imp
Differential Revision
D39069: makefs: do not call brelse if bread returns an error
Parents
rG91b2da13702f: arm: generic_timer: use interrupt-names when available
Branches
Unknown
Tags
Unknown