OpenCloudOS-Kernel/drivers/clk/zynqmp
Gustavo A. R. Silva 4f340efcb2 clk: zynqmp: Fix memory allocation in zynqmp_clk_setup
Fix memory allocation and use struct_size() in kzalloc(). This also
fixes the allocation size to be correct, and smaller, because before we
were allocating a bunch of sizeof(struct clk_hw_onecell_data) structures
for each struct clk_hw we needed.

Fixes: 3fde0e16d0 ("drivers: clk: Add ZynqMP clock driver")
Cc: stable@vger.kernel.org
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
[sboyd@kernel.org: Expand commit text]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2019-01-09 10:37:01 -08:00
..
Kconfig drivers: clk: Add ZynqMP clock driver 2018-10-09 13:29:19 +02:00
Makefile drivers: clk: Add ZynqMP clock driver 2018-10-09 13:29:19 +02:00
clk-gate-zynqmp.c drivers: clk: Add ZynqMP clock driver 2018-10-09 13:29:19 +02:00
clk-mux-zynqmp.c drivers: clk: Add ZynqMP clock driver 2018-10-09 13:29:19 +02:00
clk-zynqmp.h drivers: clk: Add ZynqMP clock driver 2018-10-09 13:29:19 +02:00
clkc.c clk: zynqmp: Fix memory allocation in zynqmp_clk_setup 2019-01-09 10:37:01 -08:00
divider.c drivers: clk: Add ZynqMP clock driver 2018-10-09 13:29:19 +02:00
pll.c drivers: clk: Add ZynqMP clock driver 2018-10-09 13:29:19 +02:00