HomeFreeBSD

loader: bd_open() should cleanup from disk_open() error

Description

loader: bd_open() should cleanup from disk_open() error

Since bd_open() does early increment for reference counter and bcache
allocation, it also should undo those in case of the error.

Also remove unused variables rdev, g_err.

Details

Provenance
tsoomeAuthored on
Parents
rS337355: Disable the new clang 7.0.0 -Watomic-alignment warning ("misaligned or
Branches
Unknown
Tags
Unknown