Re: [PATCH 1/2] ARM: integrator: impd1: fix NULL pointer dereference

2019-01-11 Thread Linus Walleij
On Fri, Jan 4, 2019 at 6:18 PM Gustavo A. R. Silva wrote: > There is a potential NULL pointer dereference in case devm_kzalloc() > fails and returns NULL. > > Fix this by adding a NULL check on lookup. > > This issue was detected with the help of Coccinelle. > > Fixes: 684284b64aae ("ARM: integra

[PATCH 1/2] ARM: integrator: impd1: fix NULL pointer dereference

2019-01-04 Thread Gustavo A. R. Silva
There is a potential NULL pointer dereference in case devm_kzalloc() fails and returns NULL. Fix this by adding a NULL check on lookup. This issue was detected with the help of Coccinelle. Fixes: 684284b64aae ("ARM: integrator: add MMCI device to IM-PD1") Cc: sta...@vger.kernel.org Signed-off-by