net: stmmac: tegra: Properly allocate clock bulk data
authorThierry Reding <treding@nvidia.com>
Wed, 26 Jul 2023 16:32:00 +0000 (18:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jul 2023 15:59:51 +0000 (16:59 +0100)
commita0b1b2055be34c0ec1371764d040164cde1ead79
tree4116ba777b540ef53a8fdb0519bdf7fa31fc4af5
parent56c6be35fcbed54279df0a2c9e60480a61841d6f
net: stmmac: tegra: Properly allocate clock bulk data

The clock data is an array of struct clk_bulk_data, so make sure to
allocate enough memory.

Fixes: d8ca113724e7 ("net: stmmac: tegra: Add MGBE support")
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c