From: Markus Elfring Date: Mon, 14 Oct 2019 08:05:09 +0000 Subject: Re: clk: samsung: Checking a kmemdup() call in _samsung_clk_register_pll() Message-Id: List-Id: References: <725ace30-a4a7-25dd-2351-f007bb8b35ed@samsung.com> In-Reply-To: <725ace30-a4a7-25dd-2351-f007bb8b35ed@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: Chanwoo Choi , linux-clk@vger.kernel.org, linux-samsung-soc@vger.kernel.org, kernel-janitors@vger.kernel.org Cc: Michael Turquette , Stephen Boyd , Sylwester Nawrocki , Tomasz Figa , Aditya Pakki , Kangjie Lu , Navid Emamdoost , Stephen McCamant , LKML >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/= drivers/clk/samsung/clk-pll.c?id=3D1c0cc5f1ae5ee5a6913704c0d75a6e99604ee30a= #n1275 >> https://protect2.fireeye.com/url?k=3D7e77b0ebee9a0c3e.7e763ba4-43f341fdf= e1d32b1&u=3Dhttps://elixir.bootlin.com/linux/v5.4-rc2/source/drivers/clk/sa= msung/clk-pll.c#L1275 =E2=80=A6 > drivers/clk/samsung/clk-pll.c considers the case of 'pll->rate_table is N= ULL' > So, maybe just show the warning message if failed to allocate memory > of 'pll->rate_table'. How do you think about to recheck information sources around the Linux allocation failure report? https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Doc= umentation/process/coding-style.rst?id=3Dda94001239cceb93c132a31928d6ddc421= 4862d5#n878 > Bu, IMHO, the error handling is necessary in order to support > what 'pll_clk->rate_table' isn't NULL. Can an other error handling strategy make sense at this place? Regards, Markus