[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdYAqmDDq-UgQUecfquBdSCVHR1=rd96Cx3LT=ySgBXqpg@mail.gmail.com>
Date: Fri, 12 May 2017 11:11:27 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: Gary Bisson <gary.bisson@...ndarydevices.com>,
Vladimir Zapolskiy <vladimir_zapolskiy@...tor.com>,
ext Tony Lindgren <tony@...mide.com>,
Vivien Didelot <vivien.didelot@...oirfairelinux.com>,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] pinctrl: imx: Check for memory allocation failure
On Sat, May 6, 2017 at 10:23 AM, Christophe JAILLET
<christophe.jaillet@...adoo.fr> wrote:
> If 'devm_kzalloc' fails, a NULL pointer will be dereferenced.
> Return -ENOMEM instead, as done for the other memory allocation just a
> few lines below.
> BTW, change the 'devm_kzalloc' into a 'devm_kcalloc'.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Patch applied.
Yours,
Linus Walleij
Powered by blists - more mailing lists