It seems to me when pub_cfg->grp0 + pub_cfg->grp1 != pub_cfg->pub_max is true,
it should return -EFAULT rather than 0. Otherwise, the function doesn't need
to exist.
Signed-off-by: Kevin Lo <redacted>
---
-----Original Message-----
From: Kevin Lo <redacted>
Sent: Thursday, October 21, 2021 2:32 PM
To: linux-wireless@vger.kernel.org
Cc: Pkshih <pkshih@realtek.com>
Subject: [PATCH wireless-drivers-next] rtw89: fix return value in hfc_pub_cfg_chk
It seems to me when pub_cfg->grp0 + pub_cfg->grp1 != pub_cfg->pub_max is true,
it should return -EFAULT rather than 0. Otherwise, the function doesn't need
to exist.
Signed-off-by: Kevin Lo <redacted>
From: Kalle Valo <hidden> Date: 2021-10-27 07:37:29
Kevin Lo [off-list ref] wrote:
quoted hunk
It seems to me when pub_cfg->grp0 + pub_cfg->grp1 != pub_cfg->pub_max is true,
it should return -EFAULT rather than 0. Otherwise, the function doesn't need
to exist.
Signed-off-by: Kevin Lo <redacted>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>