[PATCH 09/12] xv: test correct number of requests.
Dave Airlie
airlied at gmail.com
Thu Oct 20 03:44:25 PDT 2011
From: Dave Airlie <airlied at redhat.com>
Pointed out by coverity.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
Xext/xvdisp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Xext/xvdisp.c b/Xext/xvdisp.c
index 364a90c..71bf722 100644
--- a/Xext/xvdisp.c
+++ b/Xext/xvdisp.c
@@ -1238,7 +1238,7 @@ ProcXvDispatch(ClientPtr client)
UpdateCurrentTime();
- if (stuff->data > xvNumRequests) {
+ if (stuff->data >= xvNumRequests) {
SendErrorToClient(client, XvReqCode, stuff->data, 0, BadRequest);
return BadRequest;
}
--
1.7.6.4
More information about the xorg-devel
mailing list