Skip to content

Commit 3c86694

Browse files
committed
net: stmmac: dwmac-qcom-ethqos: fix error array size
JIRA: https://issues.redhat.com/browse/RHEL-6297 commit b698ab5 Author: Yijie Yang <quic_yijiyang@quicinc.com> Date: Mon Jul 1 09:47:20 2024 +0800 net: stmmac: dwmac-qcom-ethqos: fix error array size 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: 8c4d92e ("net: stmmac: dwmac-qcom-ethqos: add support for emac4 on sa8775p platforms") Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Link: https://patch.msgid.link/20240701014720.2547856-1-quic_yijiyang@quicinc.com Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
1 parent be769dd commit 3c86694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ static const struct ethqos_emac_por emac_v4_0_0_por[] = {
273273

274274
static const struct ethqos_emac_driver_data emac_v4_0_0_data = {
275275
.por = emac_v4_0_0_por,
276-
.num_por = ARRAY_SIZE(emac_v3_0_0_por),
276+
.num_por = ARRAY_SIZE(emac_v4_0_0_por),
277277
.rgmii_config_loopback_en = false,
278278
.has_emac_ge_3 = true,
279279
.link_clk_name = "phyaux",

0 commit comments

Comments
 (0)