diff options
author | Zijun Hu <quic_zijuhu@quicinc.com> | 2025-05-07 19:50:26 +0800 |
---|---|---|
committer | Andreas Hindborg <a.hindborg@kernel.org> | 2025-05-09 10:11:13 +0200 |
commit | f830edbae247b89228c3e09294151b21e0dc849c (patch) | |
tree | cfa94ff53d615c04b33a82dea58d011cff26b7ec /rust/kernel | |
parent | d78aa60cfa7ece7477a4089a3a4b520ec7beba1b (diff) |
configfs: Do not override creating attribute file failure in populate_attrs()
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: 03607ace807b ("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>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions