diff options
| author | Heinrich Schuchardt <[email protected]> | 2024-04-10 23:50:34 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-04-17 17:06:16 -0600 |
| commit | 2c3fa4b8add3cb6a440184ab67debc6867d383c0 (patch) | |
| tree | 477536ef7d6a78755acf46f58ae68cd7767a1d69 /include | |
| parent | adf418d8c1d43388ebcb5f4ca87e113b27ff934f (diff) | |
sandbox: don't call os_close with invalid file descriptor
If open() fails it returns -1. Calling close() with this value
makes no sense. Return -EIO instead.
Addresses-Coverity-ID: 185828 Improper use of negative value
Signed-off-by: Heinrich Schuchardt <[email protected]>
Fixes: 566bf3a8698 ("sandbox: Add a function to read a host file")
Reviewed-by: Sean Anderson <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
