summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorZhang Shurong <zhang_shurong@foxmail.com>2023-04-27 01:02:20 +0800
committerKalle Valo <kvalo@kernel.org>2023-05-05 10:38:08 +0300
commit225622256b1b7156624e281e1c0251c292ea24cd (patch)
treea326dad85ac15ecc7edc0a49ffb7188f897aeb19 /tools/perf/scripts/python/export-to-postgresql.py
parent271a588d34ed1dd771bc85a224b05ccdacce1de8 (diff)
wifi: rtw88: fix incorrect error codes in rtw_debugfs_copy_from_user
If there is a failure during copy_from_user or user-provided data buffer is invalid, rtw_debugfs_copy_from_user should return negative error code instead of a positive value count. Fix this bug by returning correct error code. Moreover, the check of buffer against null is removed since it will be handled by copy_from_user. 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_D2EB102CC7435C0110154E62ECA6A7D67505@qq.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions