From bdd84e895838328d5a7f20e7063c49cd6f300fd0 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Mon, 8 Oct 2001 12:58:20 +0000 Subject: [PATCH] commit Abraham vd Merwe fix. --- linux-core/drm_proc.c | 2 +- linux/drm_proc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-core/drm_proc.c b/linux-core/drm_proc.c index f65f42b..24e8556 100644 --- a/linux-core/drm_proc.c +++ b/linux-core/drm_proc.c @@ -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; diff --git a/linux/drm_proc.h b/linux/drm_proc.h index f65f42b..24e8556 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; -- 2.7.4