[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdaVD5RB7pBPaCH2PFZURYZBuECos426EDGmDHmCWXV0BA@mail.gmail.com>
Date: Thu, 23 Nov 2017 10:37:57 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: "Gustavo A. R. Silva" <garsilva@...eddedor.com>
Cc: Lee Jones <lee.jones@...aro.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] mfd: sm501: Add NULL check on devm_kzalloc return value
On Thu, Nov 23, 2017 at 4:50 AM, Gustavo A. R. Silva
<garsilva@...eddedor.com> wrote:
> Check return value from call to devm_kzalloc() in order to prevent
> a NULL pointer dereference.
>
> This issue was detected with the help of Coccinelle.
>
> Fixes: b2e63555592f ("i2c: gpio: Convert to use descriptors")
> Signed-off-by: Gustavo A. R. Silva <garsilva@...eddedor.com>
Acked-by: Linus Walleij <linus.walleij@...aro.org>
Yours,
Linus Walleij
Powered by blists - more mailing lists