Re: [PATCH] platform/x86: asus-wmi: Fix NULL pointer dereference

2018-05-31 Thread Andy Shevchenko
On Wed, May 23, 2018 at 12:30 AM, João Paulo Rechi Vita wrote: > Do not perform the rfkill cleanup routine when > (asus->driver->wlan_ctrl_by_user && ashs_present()) is true, since > nothing is registered with the rfkill subsystem in that case. Doing so > leads to the following kernel NULL pointer

[PATCH] platform/x86: asus-wmi: Fix NULL pointer dereference

2018-05-22 Thread João Paulo Rechi Vita
Do not perform the rfkill cleanup routine when (asus->driver->wlan_ctrl_by_user && ashs_present()) is true, since nothing is registered with the rfkill subsystem in that case. Doing so leads to the following kernel NULL pointer dereference: BUG: unable to handle kernel NULL pointer dereference a