diff options
author | Lee, Chun-Yi <joeyli.kernel@gmail.com> | 2012-12-14 16:14:26 +0800 |
---|---|---|
committer | Matthew Garrett <matthew.garrett@nebula.com> | 2013-01-07 12:31:30 -0500 |
commit | f20aaba9819d0801fb1314363f97239da0100bac (patch) | |
tree | 5b6bff7041a69808997cb2857ddce701a24f9d77 /fs/Makefile | |
parent | 182ae55c1285080086cf4ef969ad09d84e00237f (diff) |
acer-wmi: fix obj is NULL but dereferenced
Fengguang Wu run coccinelle and warns about:
drivers/platform/x86/acer-wmi.c:1200:17-21: ERROR: obj is NULL but dereferenced.
drivers/platform/x86/acer-wmi.c:891:17-21: ERROR: obj is NULL but dereferenced.
drivers/platform/x86/acer-wmi.c:1953:17-21: ERROR: obj is NULL but dereferenced.
It causes by the code in patch 987dfbaa65b2c3568b85e29d2598da08a011ee09 doesn't check
obj variable should not be NULL. There have risk for dereference a NULL obj, so add
this patch to fix.
Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Dmitry Torokhov <dtor@mail.ru>
Cc: Corentin Chary <corentincj@iksaif.net>
Cc: Thomas Renninger <trenn@suse.de>
Signed-off-by: Lee, Chun-Yi <jlee@suse.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Diffstat (limited to 'fs/Makefile')
0 files changed, 0 insertions, 0 deletions