summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2006-03-08 03:32:07 +0000
committerEric Anholt <anholt@freebsd.org>2006-03-08 03:32:07 +0000
commitcb5090e8d60f4e9780c859faeea5c24587f6bee7 (patch)
tree65f9872c231c4ddaaf7627572c711bdf4b50fb47 /hw
parent2e6f801fe1a749f6a4db2cfd8a43abec5caceae0 (diff)
Bug #6150: Do the obvious fix of an insane sanity check in
xf86InitFBManager. (Julio M. Merino Vidal)
Diffstat (limited to 'hw')
-rw-r--r--hw/xfree86/common/xf86fbman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/common/xf86fbman.c b/hw/xfree86/common/xf86fbman.c
index 31c84c49f..debd828bc 100644
--- a/hw/xfree86/common/xf86fbman.c
+++ b/hw/xfree86/common/xf86fbman.c
@@ -1209,7 +1209,7 @@ xf86InitFBManager(
}
if (FullBox->y2 < FullBox->y1) return FALSE;
- if (FullBox->x2 < FullBox->x2) return FALSE;
+ if (FullBox->x2 < FullBox->x1) return FALSE;
REGION_INIT(pScreen, &ScreenRegion, &ScreenBox, 1);
REGION_INIT(pScreen, &FullRegion, FullBox, 1);