xenfb: use the correct condition to avoid excessive looping
authorWei Liu <wei.liu2@citrix.com>
Tue, 12 Apr 2016 10:43:14 +0000 (11:43 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 12 Apr 2016 17:16:08 +0000 (10:16 -0700)
commit4df26e88ee2f23c01418630368e87b719ed06b75
treeb000d467c3a85007f0c08e94202798eab14648f6
parent42bb626f7ebc9197d2943b897a99e127315275ab
xenfb: use the correct condition to avoid excessive looping

In commit ac0487e1 ("xenfb.c: avoid expensive loops when prod <=
out_cons"), ">=" was used. In fact, a full ring is a legit state.
Correct the test to use ">".

Reported-by: "Hao, Xudong" <xudong.hao@intel.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Tested-by: "Hao, Xudong" <xudong.hao@intel.com>
Acked-by: Anthony Perard <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
hw/display/xenfb.c