Re: [PATCH net-next] sysfs: Fix regression when adding a file to an existing group

From: David Miller
Date: Sun Jul 29 2018 - 16:11:54 EST


From: Tyler Hicks <tyhicks@xxxxxxxxxxxxx>
Date: Fri, 27 Jul 2018 21:33:27 +0000

> Commit 5f81880d5204 ("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: 5f81880d5204 ("sysfs, kobject: allow creating kobject belonging to arbitrary users")
> Signed-off-by: Tyler Hicks <tyhicks@xxxxxxxxxxxxx>
> Reported-by: Heiner Kallweit <hkallweit1@xxxxxxxxx>
> ---
>
> Note, this was a regression exclusively in linux-next and never made it to
> Linus' tree. There's no need to queue it up for linux-stable.

Applied, thank you.