]> git.baikalelectronics.ru Git - kernel.git/commit
clk: davinci: Use the correct size when allocating memory
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 9 Aug 2020 14:49:59 +0000 (16:49 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 19 Aug 2020 03:08:23 +0000 (20:08 -0700)
commitcbab18091e5eb51418dc51c78bcf227c6bb46460
treed42db224b6313cd250f39a1d6d9568ecbd57f49d
parentdd44bddf04c5fd83529b139fbfac0a5372c1a87d
clk: davinci: Use the correct size when allocating memory

'sizeof(*pllen)' should be used in place of 'sizeof(*pllout)' to avoid a
small over-allocation.

Fixes: d01b3fe1f9ae ("clk: davinci: New driver for davinci PLL clocks")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20200809144959.747986-1-christophe.jaillet@wanadoo.fr
Reviewed-by: David Lechner <david@lechnology.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/davinci/pll.c