Re: [PATCH] intel_menlow: avoid null pointer deference error

2019-06-29 Thread Andy Shevchenko
On Wed, May 29, 2019 at 4:55 AM Young Xiao <92siuy...@gmail.com> wrote: > > 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. > Pushed to my review and testing

[PATCH] intel_menlow: avoid null pointer deference error

2019-05-28 Thread Young Xiao
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 <92siuy...@gmail.com> --- drivers/platform/x86/intel_menlow.c | 8 ++-- 1 file