mbox series

[v2,0/2] wifi: rtw88: error codes fix patches

Message ID tencent_380A90A80212A8379CB5325B2A60731E8008@qq.com (mailing list archive)
Headers show
Series wifi: rtw88: error codes fix patches | expand

Message

Zhang Shurong April 25, 2023, 4:24 p.m. UTC
rtw88 does not handle the failure during copy_from_user or invalid
user-provided data. We fix such problems by first modifying the return
value of customized function rtw_debugfs_copy_from_user. Then for all 
the callers rtw_debugfs_set_*, we receive the returned error code. 
Moreover, negative code is returned if the user-provided data is invalid
instead of a positive value count.

The changes in this version:
- Fix rtw_debugfs_copy_from_user error code in first patch
- Squash other patches to second patch

Zhang Shurong (2):
  wifi: rtw88: fix incorrect error codes in rtw_debugfs_copy_from_user
  wifi: rtw88: fix incorrect error codes in rtw_debugfs_set_*

 drivers/net/wireless/realtek/rtw88/debug.c | 59 ++++++++++++++++------
 1 file changed, 43 insertions(+), 16 deletions(-)