diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-18 20:50:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-18 20:50:16 -0400 |
commit | 65740356ccfa66703e7e0d47fbe372ba5193916b (patch) | |
tree | e1db48e0967a9499d20a343e27af50abb0b1c24b /fs/sysfs | |
parent | 6a13a857becef065cd138b67c162dc5c5dd88655 (diff) | |
parent | 4d664238207a82c4018757e2d87cf2a780462dcd (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6:
driver core: kmalloc() failure check in driver_probe_device
Driver core: bus: remove indentation level
Driver core: Don't ignore error returns from probing
Driver core: Don't leak 'old_class_name' in drivers/base/core.c::device_rename()
driver core fixes: sysfs_create_group() retval in topology.c
driver core fixes: device_create_file() retval check in dmapool.c
driver core fixes: device_add() cleanup on error
driver core fixes: bus_add_device() cleanup on error
driver core fixes: bus_add_attrs() retval check
driver core fixes: sysfs_create_link() retval check in class.c
sysfs: update obsolete comment in sysfs_update_file
sysfs: remove duplicated dput in sysfs_update_file
HOWTO: bug report addition
Fix dev_printk() is now GPL-only
Driver core: plug device probe memory leak
Documentation: feature-removal-schedule typo
Diffstat (limited to 'fs/sysfs')
-rw-r--r-- | fs/sysfs/file.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index 146f1dedec84..298303b5a716 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c | |||
@@ -483,17 +483,12 @@ int sysfs_update_file(struct kobject * kobj, const struct attribute * attr) | |||
483 | (victim->d_parent->d_inode == dir->d_inode)) { | 483 | (victim->d_parent->d_inode == dir->d_inode)) { |
484 | victim->d_inode->i_mtime = CURRENT_TIME; | 484 | victim->d_inode->i_mtime = CURRENT_TIME; |
485 | fsnotify_modify(victim); | 485 | fsnotify_modify(victim); |
486 | |||
487 | /** | ||
488 | * Drop reference from initial sysfs_get_dentry(). | ||
489 | */ | ||
490 | dput(victim); | ||
491 | res = 0; | 486 | res = 0; |
492 | } else | 487 | } else |
493 | d_drop(victim); | 488 | d_drop(victim); |
494 | 489 | ||
495 | /** | 490 | /** |
496 | * Drop the reference acquired from sysfs_get_dentry() above. | 491 | * Drop the reference acquired from lookup_one_len() above. |
497 | */ | 492 | */ |
498 | dput(victim); | 493 | dput(victim); |
499 | } | 494 | } |