diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-07-07 00:25:50 +0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-08-15 14:00:42 +0200 |
commit | 90cc62f3431b558ea10b0248e3ba85f656bf61f5 (patch) | |
tree | 8dbb86acf08710f0a4d609ccb857b2e0d6f0ce70 /drivers/edac/layerscape_edac.c | |
parent | mtd: mtdswap: remove unused variables 'dev' and 'gd' (diff) | |
download | linux-90cc62f3431b558ea10b0248e3ba85f656bf61f5.tar.xz linux-90cc62f3431b558ea10b0248e3ba85f656bf61f5.zip |
mtd: spear_smi: 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: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/edac/layerscape_edac.c')
0 files changed, 0 insertions, 0 deletions