Skip to content
Commit 2c3fa4b8 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Tom Rini
Browse files

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: default avatarHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fixes: 566bf3a8 ("sandbox: Add a function to read a host file")
Reviewed-by: default avatarSean Anderson <seanga2@gmail.com>
parent adf418d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment