Re: [Qemu-devel] [PATCH] Fix error handling in qemu_read_config_file

2010-05-24 Thread Anthony Liguori
On 05/17/2010 03:36 AM, Kevin Wolf wrote: We need to close the file even in error case. While at it, make the callers catch all kind of errors. ENOENT is allowed for default config files, they are optional. Reported-by: Luiz Capitulino Signed-off-by: Kevin Wolf Applied. Thanks. Regards,

[Qemu-devel] [PATCH] Fix error handling in qemu_read_config_file

2010-05-17 Thread Kevin Wolf
We need to close the file even in error case. While at it, make the callers catch all kind of errors. ENOENT is allowed for default config files, they are optional. Reported-by: Luiz Capitulino Signed-off-by: Kevin Wolf --- qemu-config.c | 12 vl.c |4 ++-- 2 files c