diff options
| author | Zijun Hu <[email protected]> | 2025-05-07 11:50:27 +0000 |
|---|---|---|
| committer | Andreas Hindborg <[email protected]> | 2025-05-09 08:11:13 +0000 |
| commit | bbb67d4f85fd00a216fca4ca048e15f8ff6a2195 (patch) | |
| tree | a71ac008a07df14664afcddcccf83f715a944388 /rust/helpers/mutex.c | |
| parent | configfs: Do not override creating attribute file failure in populate_attrs() (diff) | |
| download | kernel-bbb67d4f85fd00a216fca4ca048e15f8ff6a2195.tar.gz kernel-bbb67d4f85fd00a216fca4ca048e15f8ff6a2195.zip | |
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 <[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]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions
