lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Fri, 12 May 2017 11:11:27 +0200
From:   Linus Walleij <>
To:     Christophe JAILLET <>
Cc:     Gary Bisson <>,
        Vladimir Zapolskiy <>,
        ext Tony Lindgren <>,
        Vivien Didelot <>,
        "" <>,
        "" <>,
Subject: Re: [PATCH] pinctrl: imx: Check for memory allocation failure

On Sat, May 6, 2017 at 10:23 AM, Christophe JAILLET
<> 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 <>

Patch applied.

Linus Walleij

Powered by blists - more mailing lists