Messages in this thread | | | From | Linus Walleij <> | Date | Fri, 12 May 2017 11:11:27 +0200 | Subject | Re: [PATCH] pinctrl: imx: Check for memory allocation failure |
| |
On Sat, May 6, 2017 at 10:23 AM, Christophe JAILLET <christophe.jaillet@wanadoo.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@wanadoo.fr>
Patch applied.
Yours, Linus Walleij
| |