Re: [PATCH] clk: keystone: Fix an error checking
From: Lars-Peter Clausen
Date: Mon Oct 24 2016 - 06:42:15 EST
On 10/24/2016 12:36 PM, Dan Carpenter wrote:
> On Sun, Oct 23, 2016 at 10:12:49AM +0200, Christophe JAILLET wrote:
>> clk_register_pll() can return ERR_PTR(-ENOMEM) so here the check against
>> NULL only is not correct.
>>
>
> Change the ERR_PTR(-ENOMEM) to a NULL instead.
In this particular case propagate the error returned by clk_register().