mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: driver core: documentation: make it clear that sysfs is optional driver core: sysdev: do not send KOBJ_ADD uevent if kobject_init_and_add fails Dynamic debug: fix typo: -/-> driver core: firmware_class:fix memory leak of page pointers array sysfs: fix hardlink count on device_move
This commit is contained in:
commit
ccf5675a82
5 changed files with 6 additions and 4 deletions
|
|
@ -939,8 +939,10 @@ again:
|
|||
/* Remove from old parent's list and insert into new parent's list. */
|
||||
sysfs_unlink_sibling(sd);
|
||||
sysfs_get(new_parent_sd);
|
||||
drop_nlink(old_parent->d_inode);
|
||||
sysfs_put(sd->s_parent);
|
||||
sd->s_parent = new_parent_sd;
|
||||
inc_nlink(new_parent->d_inode);
|
||||
sysfs_link_sibling(sd);
|
||||
|
||||
out_unlock:
|
||||
|
|
|
|||
Loading…
Reference in a new issue