linux-stable/fs/sysfs
Geert Uytterhoeven d3ce197903 sysfs: Use local reference in compat_only_sysfs_link_entry_to_kobj()
As we have just obtained target_kobj->sd into a local variable, and
incremented the object's reference count, it is better to use the local
variable instead of the original reference.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20210714151559.2532572-1-geert@linux-m68k.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-07-21 16:11:42 +02:00
..
dir.c docs: filesystems: fix renamed references 2020-04-20 15:45:22 -06:00
file.c sysfs: Support zapping of binary attr mmaps 2021-01-12 14:26:31 +01:00
group.c sysfs: Use local reference in compat_only_sysfs_link_entry_to_kobj() 2021-07-21 16:11:42 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mount.c docs: filesystems: fix renamed references 2020-04-20 15:45:22 -06:00
symlink.c docs: filesystems: fix renamed references 2020-04-20 15:45:22 -06:00
sysfs.h sysfs, kobject: allow creating kobject belonging to arbitrary users 2018-07-20 23:44:35 -07:00