From 8f7fc880e8bbe9e59521df707f2ddd3e80e06e6f Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 12 May 2008 16:28:40 +1000 Subject: drm: fix oops on reading proc file with no master --- linux-core/drm_proc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linux-core/drm_proc.c') diff --git a/linux-core/drm_proc.c b/linux-core/drm_proc.c index b6748b9b..7f185209 100644 --- a/linux-core/drm_proc.c +++ b/linux-core/drm_proc.c @@ -175,6 +175,9 @@ static int drm_name_info(char *buf, char **start, off_t offset, int request, return 0; } + if (!master) + return 0; + *start = &buf[offset]; *eof = 0; -- cgit v1.2.3