All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] dump: fix use-after-free for s->fd
@ 2014-10-29 10:28 ` arei.gonglei
  0 siblings, 0 replies; 6+ messages in thread
From: arei.gonglei @ 2014-10-29 10:28 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Gonglei, weidong.huang, lcapitulino

From: Gonglei <arei.gonglei@huawei.com>

After commit 4c7e251a (), when dump memory completed,
the s->fd will be closed twice. We should return
directly when dump completed.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
---
 dump.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dump.c b/dump.c
index 06a4915..9d9a409 100644
--- a/dump.c
+++ b/dump.c
@@ -626,6 +626,7 @@ static void dump_iterate(DumpState *s, Error **errp)
         ret = get_next_block(s, block);
         if (ret == 1) {
             dump_completed(s);
+            return;
         }
     }
 }
-- 
1.7.12.4




^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-10-30  0:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29 10:28 [Qemu-trivial] [PATCH] dump: fix use-after-free for s->fd arei.gonglei
2014-10-29 10:28 ` [Qemu-devel] " arei.gonglei
2014-10-29 15:00 ` [Qemu-trivial] " Markus Armbruster
2014-10-29 15:00   ` Markus Armbruster
2014-10-30  0:54   ` [Qemu-trivial] " Gonglei
2014-10-30  0:54     ` Gonglei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.