diff options
author | Greg Kurz | 2017-03-06 17:34:01 +0100 |
---|---|---|
committer | Greg Kurz | 2017-03-06 17:34:01 +0100 |
commit | 23da0145cc4be66fdb1033f951dbbf140f457896 (patch) | |
tree | 67080b3a4c82e0ebb47265d8c4c99074c146a6f9 /tests/test-io-channel-command.c | |
parent | 9pfs: fix fd leak in local_opendir() (diff) | |
download | qemu-23da0145cc4be66fdb1033f951dbbf140f457896.tar.gz qemu-23da0145cc4be66fdb1033f951dbbf140f457896.tar.xz qemu-23da0145cc4be66fdb1033f951dbbf140f457896.zip |
9pfs: fail local_statfs() earlier
If we cannot open the given path, we can return right away instead of
passing -1 to fstatfs() and close(). This will make Coverity happy.
(Coverity issue CID1371729)
Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Daniel P. berrange <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'tests/test-io-channel-command.c')
0 files changed, 0 insertions, 0 deletions