Input: snvs_pwrkey - initialize necessary driver data before enabling IRQ
Anson Huang authored
commit bf2a7ca3 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: d3dc6e23

 ("input: keyboard: imx: add snvs power key driver")
Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
a99b9c82
Name Last commit Last update
Documentation USB: core: Fix bug caused by duplicate interface PM usage counter
LICENSES LICENSES: Remove CC-BY-SA-4.0 license text
arch perf/x86/amd: Update generic hardware cache events for Family 17h
block block: pass no-op callback to INIT_WORK().
certs export.h: remove VMLINUX_SYMBOL() and VMLINUX_SYMBOL_STR()
crypto crypto: x86/poly1305 - fix overflow during partial reduction
drivers Input: snvs_pwrkey - initialize necessary driver data before enabling IRQ
firmware kbuild: remove all dummy assignments to obj-
fs fs: stream_open - opener for stream-like files so that read and write can run simultaneously without deadlock
include fs: stream_open - opener for stream-like files so that read and write can run simultaneously without deadlock
init Revert "mm: use early_pfn_to_nid in page_ext_init"
ipc ipc/shm.c: use ERR_CAST() for shm_lock() error return
kernel ptrace: take into account saved_sigmask in PTRACE{GET,SET}SIGMASK
lib lib/Kconfig.debug: fix build error without CONFIG_BLOCK
mm kmemleak: powerpc: skip scanning holes in the .bss section
net batman-adv: fix warning in function batadv_v_elp_get_throughput
samples samples: mei: use /dev/mei0 instead of /dev/mei
scripts fs: stream_open - opener for stream-like files so that read and write can run simultaneously without deadlock
security selinux: use kernel linux/socket.h for genheaders and mdp
sound ASoC: stm32: fix sai driver name initialisation
tools selftests: fib_rule_tests: print the result and return 1 if any tests failed
usr initramfs: move gen_initramfs_list.sh from scripts/ to usr/
virt KVM: arm/arm64: vgic-its: Take the srcu lock when parsing the memslots
.clang-format clang-format: Set IndentWrappedFunctionNames false
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Add hch to .get_maintainer.ignore
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore Merge tag 'kbuild-v4.17-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
.mailmap Merge tag 'libnvdimm-for-4.19_misc' of gitolite.kernel.org:pub/scm/linux/kernel/git/nvdimm/nvdimm
COPYING COPYING: use the new text with points to the license files
CREDITS 9p: remove Ron Minnich from MAINTAINERS
Kbuild Merge tag 'kbuild-v4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Kconfig kconfig: move the "Executable file formats" menu to fs/Kconfig.binfmt
MAINTAINERS platform/x86: Add Intel AtomISP2 dummy / power-management driver
Makefile Linux 4.19.40
README Docs: Added a pointer to the formatted docs to README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.