mirror-linux/fs/configfs
Zijun Hu bbb67d4f85 configfs: Correct error value returned by API config_item_set_name()
kvasprintf() failure is often caused by memory allocation which has error
code -ENOMEM, but config_item_set_name() returns -EFAULT for the failure.

Fix by returning -ENOMEM instead of -EFAULT for the failure.

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-3-fe2d96de8dc4@quicinc.com
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
2025-05-09 10:11:13 +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
configfs_internal.h configfs: improve item creation performance 2024-11-14 07:45:20 +01:00
dir.c configfs: Do not override creating attribute file failure in populate_attrs() 2025-05-09 10:11:13 +02:00
file.c configfs: restore the kernel v5.13 text attribute write behavior 2021-08-09 16:56:00 +02:00
inode.c configfs: remove unused configfs_hash_and_remove 2024-11-14 07:45:19 +01:00
item.c configfs: Correct error value returned by API config_item_set_name() 2025-05-09 10:11:13 +02:00
mount.c treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
symlink.c fs: port ->permission() to pass mnt_idmap 2023-01-19 09:24:28 +01:00