diff options
author | 2019-01-22 10:56:36 -0600 | |
---|---|---|
committer | 2019-02-07 10:42:47 +0000 | |
commit | ae7b8eda27b33b1f688dfdebe4d46f690a8f9162 (patch) | |
tree | 7125e9cb83d8f1955c8dddb6165dced548ed5c5a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mfd: Kconfig: Fix I2C_DESIGNWARE_PLATFORM dependencies (diff) | |
download | wireguard-linux-ae7b8eda27b33b1f688dfdebe4d46f690a8f9162.tar.xz wireguard-linux-ae7b8eda27b33b1f688dfdebe4d46f690a8f9162.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions