diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2011-07-30 14:26:01 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni.dodonov@intel.com> | 2012-02-10 18:04:58 -0200 |
commit | 0253a96cb735d867a6c433d1a639c0d086a79535 (patch) | |
tree | b88a6903f131eaeef6094ce2f7e7cb2412373e52 | |
parent | 57a33b678f7077d59cee62c4cf8fa3dae5b652a3 (diff) |
drm/debugfs: Initialise empty variable3.1-drm-intel-backports
[airlied: move char declaration]
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
-rw-r--r-- | drivers/gpu/drm/drm_debugfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_debugfs.c b/drivers/gpu/drm/drm_debugfs.c index 895621ec761..84f90b6b700 100644 --- a/drivers/gpu/drm/drm_debugfs.c +++ b/drivers/gpu/drm/drm_debugfs.c @@ -107,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", root->d_name.name, files[i].name); kfree(tmp); |