* [PATCH v3 0/2] wifi: rtw88: error codes fix patches
@ 2023-04-26 17:02 Zhang Shurong
2023-04-27 0:47 ` Ping-Ke Shih
0 siblings, 1 reply; 2+ messages in thread
From: Zhang Shurong @ 2023-04-26 17:02 UTC (permalink / raw)
To: pkshih
Cc: tony0620emma, kvalo, davem, edumazet, kuba, pabeni,
linux-wireless, netdev, linux-kernel, Zhang Shurong
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [PATCH v3 0/2] wifi: rtw88: error codes fix patches
2023-04-26 17:02 [PATCH v3 0/2] wifi: rtw88: error codes fix patches Zhang Shurong
@ 2023-04-27 0:47 ` Ping-Ke Shih
0 siblings, 0 replies; 2+ messages in thread
From: Ping-Ke Shih @ 2023-04-27 0:47 UTC (permalink / raw)
To: Zhang Shurong
Cc: tony0620emma, kvalo, davem, edumazet, kuba, pabeni,
linux-wireless, netdev, linux-kernel
> -----Original Message-----
> From: Zhang Shurong <zhang_shurong@foxmail.com>
> Sent: Thursday, April 27, 2023 1:02 AM
> To: Ping-Ke Shih <pkshih@realtek.com>
> Cc: tony0620emma@gmail.com; kvalo@kernel.org; davem@davemloft.net; edumazet@google.com; kuba@kernel.org;
> pabeni@redhat.com; linux-wireless@vger.kernel.org; netdev@vger.kernel.org; linux-kernel@vger.kernel.org;
> Zhang Shurong <zhang_shurong@foxmail.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)
It would be better if you preserve the change of v2 as changelog.
v3 is okay to me, so don't need v4 if no other reviewer has comment
for this patchset.
>
> 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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-27 0:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-26 17:02 [PATCH v3 0/2] wifi: rtw88: error codes fix patches Zhang Shurong
2023-04-27 0:47 ` Ping-Ke Shih
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®