linux-yocto/fs/configfs
Zijun Hu bdb71ee651 configfs: Do not override creating attribute file failure in populate_attrs()
commit f830edbae2 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: stable@vger.kernel.org
Reviewed-by: Joel Becker <jlbec@evilplan.org>
Reviewed-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/20250507-fix_configfs-v3-2-fe2d96de8dc4@quicinc.com
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-06-27 11:11:12 +01:00
..
configfs_internal.h fs: port ->symlink() to pass mnt_idmap 2023-01-19 09:24:25 +01:00
dir.c configfs: Do not override creating attribute file failure in populate_attrs() 2025-06-27 11:11:12 +01:00
file.c
inode.c configfs: convert to new timestamp accessors 2023-10-18 13:26:19 +02:00
item.c
Kconfig
Makefile
mount.c
symlink.c fs: port ->permission() to pass mnt_idmap 2023-01-19 09:24:28 +01:00