sysfs: Fix regression when adding a file to an existing group
Commit 5f81880d ("sysfs, kobject: allow creating kobject belonging to arbitrary users") incorrectly changed the argument passed as the parent parameter when calling sysfs_add_file_mode_ns(). This caused some sysfs attribute files to not be added correctly to certain groups. Fixes: 5f81880d ("sysfs, kobject: allow creating kobject belonging to arbitrary users") Signed-off-by: NTyler Hicks <tyhicks@canonical.com> Reported-by: NHeiner Kallweit <hkallweit1@gmail.com> Tested-by: NHeiner Kallweit <hkallweit1@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录