Home
last modified time | relevance | path

Searched hist:ae7b8eda27b33b1f688dfdebe4d46f690a8f9162 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/mfd/
H A Dsm501.cdiff ae7b8eda27b33b1f688dfdebe4d46f690a8f9162 Tue Jan 22 10:56:36 CST 2019 Gustavo A. R. Silva <gustavo@embeddedor.com> mfd: sm501: Fix potential NULL pointer dereference

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 bug was detected with the help of Coccinelle.

Fixes: b2e63555592f ("i2c: gpio: Convert to use descriptors")
Cc: stable@vger.kernel.org
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>