projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ddddfe
)
drm: fix error message about failed procfs file registration
author
Marcin Slusarz
<marcin.slusarz@gmail.com>
Mon, 10 Oct 2011 17:32:17 +0000
(19:32 +0200)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 18 Oct 2011 09:20:23 +0000
(10:20 +0100)
It printed garbage.
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_proc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_proc.c
b/drivers/gpu/drm/drm_proc.c
index
9e5b07e
..
0f3c4e3
100644
(file)
--- a/
drivers/gpu/drm/drm_proc.c
+++ b/
drivers/gpu/drm/drm_proc.c
@@
-95,7
+95,6
@@
int drm_proc_create_files(struct drm_info_list *files, int count,
struct drm_device *dev = minor->dev;
struct proc_dir_entry *ent;
struct drm_info_node *tmp;
- char name[64];
int i, ret;
for (i = 0; i < count; i++) {
@@
-118,7
+117,7
@@
int drm_proc_create_files(struct drm_info_list *files, int count,
&drm_proc_fops, tmp);
if (!ent) {
DRM_ERROR("Cannot create /proc/dri/%s/%s\n",
- name, files[i].name);
+
root->
name, files[i].name);
list_del(&tmp->list);
kfree(tmp);
ret = -1;