diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-07-07 00:19:02 +0200 |
---|---|---|
committer | Darren Hart (VMware) <dvhart@infradead.org> | 2017-07-07 18:58:31 +0200 |
commit | b77a5372076984d33731a8da0fd52fc718f62a23 (patch) | |
tree | fb4f3a628f49af466e8c64cec66a288c8bee9bf6 /Makefile | |
parent | platform/x86: silead_dmi: Add touchscreen info for I.T.Works TW891 2-in-1 (diff) | |
download | linux-b77a5372076984d33731a8da0fd52fc718f62a23.tar.xz linux-b77a5372076984d33731a8da0fd52fc718f62a23.zip |
platform/x86: fujitsu-laptop: 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>
Reviewed-by: Jonathan Woithe <jwoithe@just42.net>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions