diff options
author | 2017-07-06 16:49:18 -0500 | |
---|---|---|
committer | 2017-07-07 13:48:33 +0100 | |
commit | da2629684822091bf15c6c14d8e33b75dfce8637 (patch) | |
tree | 0304b11bc79c62dde3ad513be278ce7aaabd27ca /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge remote-tracking branches 'regulator/topic/settle', 'regulator/topic/tps65910' and 'regulator/topic/tps65917' into regulator-next (diff) | |
download | wireguard-linux-da2629684822091bf15c6c14d8e33b75dfce8637.tar.xz wireguard-linux-da2629684822091bf15c6c14d8e33b75dfce8637.zip |
regulator: axp20x: add NULL check on devm_kzalloc() return value
Check return value from call to devm_kzalloc()
in order to prevent a NULL pointer dereference.
This issue was detected using Coccinelle and the following semantic patch:
@@
expression x;
identifier fld;
@@
* x = devm_kzalloc(...);
... when != x == NULL
x->fld
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions