From: Keir Fraser Date: Thu, 25 Oct 2007 16:27:57 +0000 (+0100) Subject: xentrace: Fix race in updating consumer ring index. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14828^2~40 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5afede5ce640deb26e258c2d2c9dbbecef0fc0a5;p=xen.git xentrace: Fix race in updating consumer ring index. From: George Dunlap Signed-off-by: Keir Fraser --- diff --git a/tools/xentrace/xentrace.c b/tools/xentrace/xentrace.c index 17df72fe9d..5e7a0c5207 100644 --- a/tools/xentrace/xentrace.c +++ b/tools/xentrace/xentrace.c @@ -394,7 +394,7 @@ int monitor_tbufs(int outfd) } mb(); /* read buffer, then update cons. */ - meta[i]->cons = meta[i]->prod; + meta[i]->cons = prod; } nanosleep(&opts.poll_sleep, NULL);