mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 14:10:43 +00:00
sandbox: Silence coverity warning in state_read_file()
In this case the value seems save to pass to os_free(). Add a comment. Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by: Coverity (CID: 165109)
This commit is contained in:
parent
fdfae3727c
commit
9a72bea6cb
1 changed files with 4 additions and 0 deletions
|
@ -78,6 +78,10 @@ static int state_read_file(struct sandbox_state *state, const char *fname)
|
|||
err_read:
|
||||
os_close(fd);
|
||||
err_open:
|
||||
/*
|
||||
* tainted scalar, since size is obtained from the file. But we can rely
|
||||
* on os_malloc() to handle invalid values.
|
||||
*/
|
||||
os_free(state->state_fdt);
|
||||
state->state_fdt = NULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue