diff options
author | Zhang Shurong <zhang_shurong@foxmail.com> | 2023-04-27 01:02:21 +0800 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2023-05-05 10:38:08 +0300 |
commit | 77005533777267736fca64fa376b8a835cb8806b (patch) | |
tree | cc4f3c6c8076c2c741be7bde96ab12c556255320 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 225622256b1b7156624e281e1c0251c292ea24cd (diff) |
wifi: rtw88: fix incorrect error codes in rtw_debugfs_set_*
If there is a failure during copy_from_user or user-provided data
buffer is invalid, rtw_debugfs_set_* should return negative
error code instead of a positive value count.
Fix this bug by returning correct error code.
Signed-off-by: Zhang Shurong <zhang_shurong@foxmail.com>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/tencent_53140CC2A3468101955F02EB66AA96780B05@qq.com
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions