[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Fri, 5 May 2023 07:38:24 +0000 (UTC)
From: Kalle Valo <kvalo@...nel.org>
To: Zhang Shurong <zhang_shurong@...mail.com>
Cc: pkshih@...ltek.com, tony0620emma@...il.com, 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: Re: [PATCH v3 1/2] wifi: rtw88: fix incorrect error codes in
rtw_debugfs_copy_from_user
Zhang Shurong <zhang_shurong@...mail.com> wrote:
> 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@...mail.com>
> Reviewed-by: Ping-Ke Shih <pkshih@...ltek.com>
2 patches applied to wireless-next.git, thanks.
225622256b1b wifi: rtw88: fix incorrect error codes in rtw_debugfs_copy_from_user
770055337772 wifi: rtw88: fix incorrect error codes in rtw_debugfs_set_*
--
https://patchwork.kernel.org/project/linux-wireless/patch/tencent_D2EB102CC7435C0110154E62ECA6A7D67505@qq.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists