[Qemu-devel] [PATCH] exec: fix error handling in file_ram_alloc

2016-03-19 Thread Paolo Bonzini
One instance of double closing, and invalid close(-1) in some cases of "goto error". Signed-off-by: Paolo Bonzini --- exec.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/exec.c b/exec.c index f398d21..5c16f41 100644 --- a/exec.c +++ b/exec.c @@ -1238,7 +1238,7 @@ st

Re: [Qemu-devel] [PATCH] exec: fix error handling in file_ram_alloc

2016-03-18 Thread Laszlo Ersek
On 03/17/16 23:51, Paolo Bonzini wrote: > One instance of double closing, and invalid close(-1) in some cases > of "goto error". > > Signed-off-by: Paolo Bonzini > --- > exec.c | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/exec.c b/exec.c > index f398d21..5c16f