diff options
author | Zijun Hu <zijun.hu@oss.qualcomm.com> | 2025-06-20 22:35:20 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-06-24 16:48:34 +0100 |
commit | 0ef1fe4bc38673db72e39b700b29c50dfcc5a415 (patch) | |
tree | 1ff806c8c75e8501b5f812a1a63d3e972c322231 /tools/perf/scripts/python/stackcollapse.py | |
parent | 7aecbbdf86d3288576a84df360f96b93ceec7ee2 (diff) |
char: misc: Fix improper and inaccurate error code returned by misc_init()
misc_init() returns -EIO for __register_chrdev() invocation failure, but:
- -EIO is for I/O error normally, but __register_chrdev() does not do I/O.
- -EIO can not cover various error codes returned by __register_chrdev().
Fix by returning error code of __register_chrdev().
Signed-off-by: Zijun Hu <zijun.hu@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250620-fix_mischar-v1-3-6c2716bbf1fa@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions