diff options
| author | Gustavo A. R. Silva <[email protected]> | 2017-07-06 21:49:18 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2017-07-07 12:48:33 +0000 |
| commit | da2629684822091bf15c6c14d8e33b75dfce8637 (patch) | |
| tree | 0304b11bc79c62dde3ad513be278ce7aaabd27ca /net/switchdev/switchdev.c | |
| parent | Merge remote-tracking branches 'regulator/topic/settle', 'regulator/topic/tps... (diff) | |
| download | kernel-da2629684822091bf15c6c14d8e33b75dfce8637.tar.gz kernel-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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
