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
dir.c configfs: Do not override creating attribute file failure in populate_attrs() 2025-06-27 11:02:50 +01:00
file.c
inode.c
item.c
Kconfig
Makefile
mount.c
symlink.c