Message ID | 20191111144507.4027979-2-thierry.reding@gmail.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Series | [GIT,PULL,v2,1/2] clk: Changes for v5.5-rc1 | expand |
Quoting Thierry Reding (2019-11-11 06:45:07) > Hi Michael, Stephen, > > The following changes since commit 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c: > > Linux 5.4-rc1 (2019-09-30 10:35:40 -0700) > > are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git tags/tegra-for-5.5-clk-v2 > > for you to fetch changes up to 07b293c5b01483f3c65372e72e62a2ee559ce1cf: > > clk: tegra: Fix build error without CONFIG_PM_SLEEP (2019-11-11 14:53:05 +0100) > > This updated pull request contains changes needed for the updated API to > retrieve a clock's parent's index as well as additional Acked-bys from > Stephen. > > Thanks, > Thierry > > ---------------------------------------------------------------- Thanks. Pulled into clk-next. I noticed this error from static checker. drivers/clk/tegra/clk.c:241 tegra_clk_init() error: double free of 'periph_clk_enb_refcnt' And maybe that function can use struct_size() too instead of kcalloc with a multiply?
13.11.2019 22:27, Stephen Boyd пишет: > Quoting Thierry Reding (2019-11-11 06:45:07) >> Hi Michael, Stephen, >> >> The following changes since commit 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c: >> >> Linux 5.4-rc1 (2019-09-30 10:35:40 -0700) >> >> are available in the Git repository at: >> >> git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git tags/tegra-for-5.5-clk-v2 >> >> for you to fetch changes up to 07b293c5b01483f3c65372e72e62a2ee559ce1cf: >> >> clk: tegra: Fix build error without CONFIG_PM_SLEEP (2019-11-11 14:53:05 +0100) >> >> This updated pull request contains changes needed for the updated API to >> retrieve a clock's parent's index as well as additional Acked-bys from >> Stephen. >> >> Thanks, >> Thierry >> >> ---------------------------------------------------------------- > > Thanks. Pulled into clk-next. I noticed this error from static checker. > > drivers/clk/tegra/clk.c:241 tegra_clk_init() error: double free of 'periph_clk_enb_refcnt' That's a good catch! Sowjanya, could you please make a patch to fix it? > And maybe that function can use struct_size() too instead of kcalloc > with a multiply? The struct_size() has a different purpose, it should be used when structure is padded with a variable-size array at the end.