linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* clk: rockchip: Checking a kmemdup() call in rockchip_clk_register_pll()
@ 2019-10-12 13:55 Markus Elfring
  2019-10-12 21:32 ` Heiko Stübner
  0 siblings, 1 reply; 7+ messages in thread
From: Markus Elfring @ 2019-10-12 13:55 UTC (permalink / raw)
  To: linux-clk, linux-arm-kernel, linux-rockchip, Heiko Stübner,
	Michael Turquette, Stephen Boyd
  Cc: LKML, kernel-janitors, Aditya Pakki, Kangjie Lu, Navid Emamdoost,
	Stephen McCamant

Hello,

I tried another script for the semantic patch language out.
This source code analysis approach points out that the implementation
of the function “rockchip_clk_register_pll” contains also a call
of the function “kmemdup”.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/clk/rockchip/clk-pll.c?id=1c0cc5f1ae5ee5a6913704c0d75a6e99604ee30a#n913
https://elixir.bootlin.com/linux/v5.4-rc2/source/drivers/clk/rockchip/clk-pll.c#L913

* Do you find the usage of the format string “%s: could not allocate
  rate table for %s\n” still appropriate at this place?

* Is there a need to adjust the error handling here?

Regards,
Markus

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-10-16  6:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-12 13:55 clk: rockchip: Checking a kmemdup() call in rockchip_clk_register_pll() Markus Elfring
2019-10-12 21:32 ` Heiko Stübner
2019-10-13  8:45   ` Markus Elfring
2019-10-13 21:49     ` Heiko Stuebner
2019-10-14  7:26       ` Markus Elfring
2019-10-15 20:29         ` Heiko Stuebner
2019-10-16  6:24           ` Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).