diff options
Diffstat (limited to 'fs/sysfs/file.c')
-rw-r--r-- | fs/sysfs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index fd4b6dc03d2d..8240b1687dd0 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c | |||
@@ -454,7 +454,7 @@ int sysfs_add_file(struct dentry * dir, const struct attribute * attr, int type) | |||
454 | goto out_unlock; | 454 | goto out_unlock; |
455 | } | 455 | } |
456 | 456 | ||
457 | sd = sysfs_new_dirent((void *)attr, mode, type); | 457 | sd = sysfs_new_dirent(attr->name, (void *)attr, mode, type); |
458 | if (!sd) { | 458 | if (!sd) { |
459 | error = -ENOMEM; | 459 | error = -ENOMEM; |
460 | goto out_unlock; | 460 | goto out_unlock; |