* [PATCH] net: stmmac: dwmac-qcom-ethqos: fix error array size
@ 2024-07-01 1:47 YijieYang
2024-07-01 7:48 ` Bartosz Golaszewski
2024-07-02 13:40 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: YijieYang @ 2024-07-01 1:47 UTC (permalink / raw)
To: vkoul, alexandre.torgue, joabreu, davem, edumazet, kuba, pabeni,
mcoquelin.stm32, bartosz.golaszewski, netdev, linux-arm-msm,
linux-stm32, linux-arm-kernel, linux-kernel
Cc: kernel, quic_tengfan, quic_aiquny, quic_jiegan, quic_yijiyang,
stable
From: Yijie Yang <quic_yijiyang@quicinc.com>
Correct member @num_por with size of right array @emac_v4_0_0_por for
struct ethqos_emac_driver_data @emac_v4_0_0_data.
Cc: stable@vger.kernel.org
Fixes: 8c4d92e82d50 ("net: stmmac: dwmac-qcom-ethqos: add support for emac4 on sa8775p platforms")
Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
index 80eb72bc6311..e8a1701cdb7c 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
@@ -272,7 +272,7 @@ static const struct ethqos_emac_por emac_v4_0_0_por[] = {
static const struct ethqos_emac_driver_data emac_v4_0_0_data = {
.por = emac_v4_0_0_por,
- .num_por = ARRAY_SIZE(emac_v3_0_0_por),
+ .num_por = ARRAY_SIZE(emac_v4_0_0_por),
.rgmii_config_loopback_en = false,
.has_emac_ge_3 = true,
.link_clk_name = "phyaux",
base-commit: 0fc4bfab2cd45f9acb86c4f04b5191e114e901ed
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] net: stmmac: dwmac-qcom-ethqos: fix error array size
2024-07-01 1:47 [PATCH] net: stmmac: dwmac-qcom-ethqos: fix error array size YijieYang
@ 2024-07-01 7:48 ` Bartosz Golaszewski
2024-07-02 13:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2024-07-01 7:48 UTC (permalink / raw)
To: YijieYang
Cc: vkoul, alexandre.torgue, joabreu, davem, edumazet, kuba, pabeni,
mcoquelin.stm32, bartosz.golaszewski, netdev, linux-arm-msm,
linux-stm32, linux-arm-kernel, linux-kernel, kernel, quic_tengfan,
quic_aiquny, quic_jiegan, stable
On Mon, Jul 1, 2024 at 3:48 AM YijieYang <quic_yijiyang@quicinc.com> wrote:
>
> From: Yijie Yang <quic_yijiyang@quicinc.com>
>
> Correct member @num_por with size of right array @emac_v4_0_0_por for
> struct ethqos_emac_driver_data @emac_v4_0_0_data.
>
> Cc: stable@vger.kernel.org
> Fixes: 8c4d92e82d50 ("net: stmmac: dwmac-qcom-ethqos: add support for emac4 on sa8775p platforms")
> Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
> ---
> drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
> index 80eb72bc6311..e8a1701cdb7c 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
> @@ -272,7 +272,7 @@ static const struct ethqos_emac_por emac_v4_0_0_por[] = {
>
> static const struct ethqos_emac_driver_data emac_v4_0_0_data = {
> .por = emac_v4_0_0_por,
> - .num_por = ARRAY_SIZE(emac_v3_0_0_por),
> + .num_por = ARRAY_SIZE(emac_v4_0_0_por),
> .rgmii_config_loopback_en = false,
> .has_emac_ge_3 = true,
> .link_clk_name = "phyaux",
>
> base-commit: 0fc4bfab2cd45f9acb86c4f04b5191e114e901ed
> --
> 2.34.1
>
>
Oops, that's on me. Thanks for catching it.
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] net: stmmac: dwmac-qcom-ethqos: fix error array size
2024-07-01 1:47 [PATCH] net: stmmac: dwmac-qcom-ethqos: fix error array size YijieYang
2024-07-01 7:48 ` Bartosz Golaszewski
@ 2024-07-02 13:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-07-02 13:40 UTC (permalink / raw)
To: YijieYang
Cc: vkoul, alexandre.torgue, joabreu, davem, edumazet, kuba, pabeni,
mcoquelin.stm32, bartosz.golaszewski, netdev, linux-arm-msm,
linux-stm32, linux-arm-kernel, linux-kernel, kernel, quic_tengfan,
quic_aiquny, quic_jiegan, stable
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Mon, 1 Jul 2024 09:47:20 +0800 you wrote:
> From: Yijie Yang <quic_yijiyang@quicinc.com>
>
> Correct member @num_por with size of right array @emac_v4_0_0_por for
> struct ethqos_emac_driver_data @emac_v4_0_0_data.
>
> Cc: stable@vger.kernel.org
> Fixes: 8c4d92e82d50 ("net: stmmac: dwmac-qcom-ethqos: add support for emac4 on sa8775p platforms")
> Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
>
> [...]
Here is the summary with links:
- net: stmmac: dwmac-qcom-ethqos: fix error array size
https://git.kernel.org/netdev/net/c/b698ab56837b
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-02 13:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-01 1:47 [PATCH] net: stmmac: dwmac-qcom-ethqos: fix error array size YijieYang
2024-07-01 7:48 ` Bartosz Golaszewski
2024-07-02 13:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).