qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] colo-compare: fix the dangerous assignment
@ 2017-11-16  2:28 Mao Zhongyi
  2017-11-16 10:13 ` Darren Kenny
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Mao Zhongyi @ 2017-11-16  2:28 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Jason Wang, Zhang Chen, Li Zhijian, Paolo Bonzini

Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Zhang Chen <zhangckid@gmail.com>
Cc: Li Zhijian <lizhijian@cn.fujitsu.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Fixes: 8ec14402029d783720f4312ed8a925548e1dad61
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
---
 net/colo-compare.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/colo-compare.c b/net/colo-compare.c
index ccdcba2..1ce195f 100644
--- a/net/colo-compare.c
+++ b/net/colo-compare.c
@@ -179,7 +179,7 @@ static int packet_enqueue(CompareState *s, int mode, Connection **con)
                          "drop packet");
         }
     }
-    con = &conn;
+    *con = conn;
 
     return 0;
 }
-- 
2.9.4

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

end of thread, other threads:[~2017-11-17  2:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-16  2:28 [Qemu-devel] [PATCH] colo-compare: fix the dangerous assignment Mao Zhongyi
2017-11-16 10:13 ` Darren Kenny
2017-11-16 12:25   ` Mao Zhongyi
2017-11-16 20:07 ` Stefan Weil
2017-11-17  1:21   ` Mao Zhongyi
2017-11-17  2:34 ` Jason Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).