fstat() returns -1 on failure, so testing for a return value less than
-1 could never catch an error, and we would carry on with whatever
garbage was in the stat buffer.
Sponsored by: The FreeBSD Foundation
Sponsored by: Klara, Inc.
Differential D61846
loader: efi: fix error check on fstat() in chain Authored by kevans on Fri, Nov 20, 7:44 PM. Project Tags None Referenced Files
Details
Diff Detail
|