diff options
author | Young Xiao <92siuyang@gmail.com> | 2019-05-29 09:55:51 +0800 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-06-12 12:42:27 +0300 |
commit | 92a74ce3c466011375bdf8282e64b13a7052aee8 (patch) | |
tree | 4b25dc231b59b718bf7f677ab688befc982fc3f5 /arch/mips/paravirt/paravirt-smp.c | |
parent | 8d4b2daff2567ac189a83ed99aa2f0338afbd5f0 (diff) |
platform/x86: intel_menlow: avoid null pointer deference error
Fix a null pointer deference by acpi_driver_data() if device is
null (dereference before check). We should only set cdev and check
this is OK after we are sure device is not null.
Signed-off-by: Young Xiao <92siuyang@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'arch/mips/paravirt/paravirt-smp.c')
0 files changed, 0 insertions, 0 deletions