projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dce3442
)
drm: fix oops on reading proc file with no master
author
Dave Airlie
<airlied@redhat.com>
Mon, 12 May 2008 06:28:40 +0000
(16:28 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Mon, 12 May 2008 06:28:40 +0000
(16:28 +1000)
linux-core/drm_proc.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_proc.c
b/linux-core/drm_proc.c
index
b6748b9
..
7f18520
100644
(file)
--- 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;