android_kernel_motorola_sm6375/fs/configfs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Zijun Hu 64d0e07a9b configfs: Do not override creating attribute file failure in populate_attrs()
commit f830edbae247b89228c3e09294151b21e0dc849c upstream.

populate_attrs() may override failure for creating attribute files
by success for creating subsequent bin attribute files, and have
wrong return value.

Fix by creating bin attribute files under successfully creating
attribute files.

Fixes: 03607ace80 ("configfs: implement binary attributes")
Cc: [email protected]
Reviewed-by: Joel Becker <[email protected]>
Reviewed-by: Breno Leitao <[email protected]>
Signed-off-by: Zijun Hu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Andreas Hindborg <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2025-06-27 11:02:50 +01:00
..
configfs_internal.h configfs: calculate the symlink target only once 2019-09-11 12:46:14 +02:00
dir.c configfs: Do not override creating attribute file failure in populate_attrs() 2025-06-27 11:02:50 +01:00
file.c configfs: fix memleak in configfs_release_bin_file 2021-07-14 16:53:46 +02:00
inode.c utimes: Clamp the timestamps in notify_change() 2020-02-11 04:35:12 -08:00
item.c
Kconfig
Makefile
mount.c configfs: calculate the symlink target only once 2019-09-11 12:46:14 +02:00
symlink.c configfs: calculate the depth of parent item 2019-11-06 18:36:01 +01:00