[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_1BB7243C6EDA6B2BB6E2C1563C1614D45009@qq.com>
Date: Thu, 27 Apr 2023 01:02:19 +0800
From: Zhang Shurong <zhang_shurong@...mail.com>
To: pkshih@...ltek.com
Cc: tony0620emma@...il.com, kvalo@...nel.org, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
Zhang Shurong <zhang_shurong@...mail.com>
Subject: [PATCH v3 0/2] wifi: rtw88: error codes fix patches
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:
- check by if (ret) instead of check by if (ret < 0)
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(-)
--
2.40.0
Powered by blists - more mailing lists