]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: Fix regression when adding a file to an existing group
authorTyler Hicks <tyhicks@canonical.com>
Fri, 27 Jul 2018 21:33:27 +0000 (21:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Jul 2018 20:11:28 +0000 (13:11 -0700)
commita3acca172b55b9c5d58a908be48ad4eacc1e201f
treebf1b53ec2bd412bbee30ef32128769447b31bb86
parent32716def6a88a4624ef500c8c85dd9ccf5bd1b2a
sysfs: Fix regression when adding a file to an existing group

Commit 2e149e2ec0b8 ("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: 2e149e2ec0b8 ("sysfs, kobject: allow creating kobject belonging to arbitrary users")
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Reported-by: Heiner Kallweit <hkallweit1@gmail.com>
Tested-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/sysfs/file.c