]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader/zfs: Fix to actually return the last error
authorWarner Losh <imp@FreeBSD.org>
Tue, 27 Feb 2024 05:47:38 +0000 (22:47 -0700)
committerWarner Losh <imp@FreeBSD.org>
Thu, 29 Feb 2024 16:12:21 +0000 (09:12 -0700)
commit525e6d6c890f6aee898ac70347e5bb49da6638a1
tree33d545dd8afdf8e5f54b396a82cd863e4dcbf62b
parentaa80cfadff0bb715ca090cbd1b3561a1619251d5
loader/zfs: Fix to actually return the last error

The last fix, to try to return the last error, really returns the first
return code after the last error, which could be zero. Instead, return
the last error. Also, change rc to err to make it visually distinct from
rv, which is the cause of my error in e54bb0ad8058.

Reported by: Bill Sommerfeld <sommerfeld@hamachi.org>
Fixes: e54bb0ad8058
Sponsored by: Netflix
stand/libsa/zfs/zfsimpl.c