diff options
author | Anson Huang <anson.huang@nxp.com> | 2019-04-04 01:14:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-08 08:20:52 +0300 |
commit | 22cac0dc8e3cd54438a923b3a60d6c4c89ec0994 (patch) | |
tree | a35aaa1accffad932c69cd87bcc6e8aaf533dfe0 /arch/powerpc/mm | |
parent | e29f63815be8b097c5f2c4156aef1a9849fa4060 (diff) | |
download | linux-22cac0dc8e3cd54438a923b3a60d6c4c89ec0994.tar.xz |
Input: snvs_pwrkey - initialize necessary driver data before enabling IRQ
commit bf2a7ca39fd3ab47ef71c621a7ee69d1813b1f97 upstream.
SNVS IRQ is requested before necessary driver data initialized,
if there is a pending IRQ during driver probe phase, kernel
NULL pointer panic will occur in IRQ handler. To avoid such
scenario, just initialize necessary driver data before enabling
IRQ. This patch is inspired by NXP's internal kernel tree.
Fixes: d3dc6e232215 ("input: keyboard: imx: add snvs power key driver")
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/powerpc/mm')
0 files changed, 0 insertions, 0 deletions