]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commit
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)
committerAnthony PERARD <anthony.perard@citrix.com>
Mon, 25 Apr 2016 10:14:08 +0000 (11:14 +0100)
commit62936f64308aae81530b1273ad2c248b6476e62e
tree52d1015f60e1c01250bde444ef2d3718b3a9b0e4
parent5177ee26e9f11a4e074e64567cfd1778bdbd2997
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 ">".

upstream-commit-id: 4df26e88ee2f23c01418630368e87b719ed06b75

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