projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b57637
)
drm/debugfs: Initialise empty variable
author
Emil Velikov
<emil.l.velikov@gmail.com>
Sat, 30 Jul 2011 14:26:01 +0000
(14:26 +0000)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 4 Aug 2011 13:38:52 +0000
(14:38 +0100)
[airlied: move char declaration]
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_debugfs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/drm_debugfs.c
b/drivers/gpu/drm/drm_debugfs.c
index 9d8c892d07c93b1d4e855adc839e28bea5959aab..9d2668a5087258e4f0624f69e40d9ccfbc989e0b 100644
(file)
--- a/
drivers/gpu/drm/drm_debugfs.c
+++ b/
drivers/gpu/drm/drm_debugfs.c
@@
-90,7
+90,6
@@
int drm_debugfs_create_files(struct drm_info_list *files, int count,
struct drm_device *dev = minor->dev;
struct dentry *ent;
struct drm_info_node *tmp;
- char name[64];
int i, ret;
for (i = 0; i < count; i++) {
@@
-108,6
+107,9
@@
int drm_debugfs_create_files(struct drm_info_list *files, int count,
ent = debugfs_create_file(files[i].name, S_IFREG | S_IRUGO,
root, tmp, &drm_debugfs_fops);
if (!ent) {
+ char name[64];
+ strncpy(name, root->d_name.name,
+ min(root->d_name.len, 64U));
DRM_ERROR("Cannot create /sys/kernel/debug/dri/%s/%s\n",
name, files[i].name);
kfree(tmp);