summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-02-24 08:35:06 +1000
committerAK <andi@firstfloor.org>2011-03-31 11:58:15 -0700
commitef7626ef2ce9260ef806b1f21b2340007df790ea (patch)
tree75afdef9e7d91862d9423a418db92d3b773e8566 /include
parent065d36903eda46c9b3434feaebc9b2e2b48c1689 (diff)
drm: fix unsigned vs signed comparison issue in modeset ctl ioctl.
commit 1922756124ddd53846877416d92ba4a802bc658f upstream. This fixes CVE-2011-1013. Reported-by: Matthiew Herrb (OpenBSD X.org team) Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/drm/drmP.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 7c9d28d635b5..3667812ce6e2 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1021,7 +1021,7 @@ struct drm_device {
struct pci_controller *hose;
#endif
struct drm_sg_mem *sg; /**< Scatter gather memory */
- int num_crtcs; /**< Number of CRTCs on this device */
+ unsigned int num_crtcs; /**< Number of CRTCs on this device */
void *dev_private; /**< device private data */
void *mm_private;
struct address_space *dev_mapping;