summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2001-10-08 12:58:20 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2001-10-08 12:58:20 +0000
commitbdd84e895838328d5a7f20e7063c49cd6f300fd0 (patch)
treea12cffa3209b518249ce75f8ad9a82be2d3e3c96 /linux
parentca820fca877faf4776be142417795a5945c606e6 (diff)
commit Abraham vd Merwe fix.
Diffstat (limited to 'linux')
-rw-r--r--linux/drm_proc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drm_proc.h b/linux/drm_proc.h
index f65f42b7..24e8556f 100644
--- a/linux/drm_proc.h
+++ b/linux/drm_proc.h
@@ -186,7 +186,7 @@ static int DRM(_vm_info)(char *buf, char **start, off_t offset, int request,
DRM_PROC_PRINT("slot offset size type flags "
"address mtrr\n\n");
i = 0;
- list_for_each(list, &dev->maplist->head) {
+ if (dev->maplist != NULL) list_for_each(list, &dev->maplist->head) {
r_list = (drm_map_list_t *)list;
map = r_list->map;
if(!map) continue;