]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: stmmac: tegra: Properly allocate clock bulk data
authorThierry Reding <treding@nvidia.com>
Wed, 26 Jul 2023 16:32:00 +0000 (18:32 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 30 Oct 2023 10:59:59 +0000 (11:59 +0100)
commita215222e379dff9181f329e58fc10cf4912c5ccf
tree26f825987486e404e4da9c54bd1b4a664ed256db
parent22c69b19b1c1173730e74b4944034b3de712c65a
net: stmmac: tegra: Properly allocate clock bulk data

BugLink: https://bugs.launchpad.net/bugs/2038236
[ Upstream commit a0b1b2055be34c0ec1371764d040164cde1ead79 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c