commit | 90cc62f3431b558ea10b0248e3ba85f656bf61f5 | [log] [tgz] |
---|---|---|
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | Thu Jul 06 17:25:50 2017 -0500 |
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | Tue Aug 15 14:00:42 2017 +0200 |
tree | 8dbb86acf08710f0a4d609ccb857b2e0d6f0ce70 | |
parent | 1fbef470f3691a4a8afc4937c4ad1901e42901c4 [diff] |
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>