summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorms148562 <none@none>2006-03-02 18:41:41 -0800
committerms148562 <none@none>2006-03-02 18:41:41 -0800
commitccab1e5fadd178f0a6052dd155a0d232f9e0b77f (patch)
treea4fb1179f74af9f1ac552a98435e9cee5666492d /usr
parentb65731f1f612238279eb4d997f43589b535c5646 (diff)
downloadillumos-joyent-ccab1e5fadd178f0a6052dd155a0d232f9e0b77f.tar.gz
6383241 Opening /dev/agpgart on the v20z and v40z hang the system hard.
Diffstat (limited to 'usr')
-rw-r--r--usr/src/uts/i86pc/io/agpgart/agpgart.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/src/uts/i86pc/io/agpgart/agpgart.c b/usr/src/uts/i86pc/io/agpgart/agpgart.c
index 24f9061795..ccaf16bc67 100644
--- a/usr/src/uts/i86pc/io/agpgart/agpgart.c
+++ b/usr/src/uts/i86pc/io/agpgart/agpgart.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
@@ -811,9 +811,11 @@ lyr_get_info(agp_kern_info_t *info, agp_registered_dev_t *agp_regdev)
"lyr_get_info: function doesn't work for unknown arc"));
return (-1);
}
- if (info->agpki_apersize >= MAXAPERMEGAS) {
+ if ((info->agpki_apersize >= MAXAPERMEGAS) ||
+ (info->agpki_apersize == 0) ||
+ (info->agpki_aperbase == 0)) {
AGPDB_PRINT2((CE_WARN,
- "lyr_get_info: aper size is too large!"));
+ "lyr_get_info: aperture is not programmed correctly!"));
return (-1);
}