net: stmmac: dwmac-qcom-ethqos: fix error array size
authorYijie Yang <quic_yijiyang@quicinc.com>
Mon, 1 Jul 2024 01:47:20 +0000 (09:47 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 2 Jul 2024 13:37:12 +0000 (15:37 +0200)
commitb698ab56837bc9e666b7e7e12e9c28fe1d6a763c
tree8936c90efdc243f3e58820d56ad38ae2c1497a74
parentd2d30a376d9cc94c6fb730c58b3e5b7426ecb6de
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: 8c4d92e82d50 ("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>
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c