HomeFreeBSD

libbe: Avoid double printing cloning errors.

Description

libbe: Avoid double printing cloning errors.

be_clone calls be_clone_cb and both call set_error on the return
error path. set_error prints the error resulting in a double print.
be_clone_cb should just return the error code and allow be_clone
to print it.

PR: 265248
Reported by: Graham Perrin
Reviewed by: imp, kevans
Pull Request: https://github.com/freebsd/freebsd-src/pull/685

(cherry picked from commit 8e933d9c598ec847081c322e7ae9a46bf7897886)

Details

Provenance
john.grafton_runbox.comAuthored on Mar 15 2023, 3:14 AM
impCommitted on Feb 19 2024, 3:02 AM
Parents
rGfcb6cac22397: if_re: Generate an address if there is none in the EEPROM
Branches
Unknown
Tags
Unknown