From: Markus Elfring Date: Wed, 16 Oct 2019 10:55:22 +0000 Subject: Re: clk: samsung: Checking a kmemdup() call in _samsung_clk_register_pll() Message-Id: <285fab33-0513-8a6b-f30d-f602c4e5108e@web.de> List-Id: References: <7933ce8f-ca1b-6ed8-14b9-59679130dc47@web.de> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Tomasz Figa , linux-clk@vger.kernel.org, linux-samsung-soc@vger.kernel.org, kernel-janitors@vger.kernel.org Cc: Chanwoo Choi , Michael Turquette , Stephen Boyd , Sylwester Nawrocki , Aditya Pakki , Kangjie Lu , Navid Emamdoost , Stephen McCamant , LKML >> * Is there a need to adjust the error handling here? > > No, there isn't much that can be done if we fail the allocation at > such an early stage. Can it matter to perform the setting “pll->rate_count” only according to a null pointer check for the variable “pll->rate_table” because of the function call “kmemdup”? Regards, Markus