Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262559
b: refs/heads/master
c: 4d5cb60
h: refs/heads/master
i:
  262557: 8fa5524
  262555: 33b3fc4
  262551: b86c63b
  262543: 47c1707
  262527: 16e1383
v: v3
  • Loading branch information
Emil Velikov authored and Dave Airlie committed Aug 4, 2011
1 parent 0c051c3 commit 034c4a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0b576372e86c8e6bee01506651b21ec0fe8a1698
refs/heads/master: 4d5cb60d3f6c396899a515e0e667d0f855ed66cc
4 changes: 3 additions & 1 deletion trunk/drivers/gpu/drm/drm_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand All @@ -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);
Expand Down

0 comments on commit 034c4a8

Please sign in to comment.