HomeFreeBSD

device_get_path(): do not drop the error from BUS_GET_DEVICE_PATH()

Description

device_get_path(): do not drop the error from BUS_GET_DEVICE_PATH()

Later it would silently converted to ENOMEM always, because any error
was reported as NULL return path.

Reviewed by: jhb, takawata
Discussed with: imp
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D36899

Details

Provenance
kibAuthored on Oct 7 2022, 1:25 AM
Reviewer
jhb
Differential Revision
D36899: Better handling of nexus and errors for DEV_GET_PATH
Parents
rG23d2fcfbb29d: subr_bus.c: some style
Branches
Unknown
Tags
Unknown