diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-04-15 19:56:14 -0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-06-03 08:11:13 +0100 |
commit | 48ca9a52c58c088c7492185ef33d0675d6382b5a (patch) | |
tree | 69af6e3c4f6b083047339788b8d9b97d52f6a461 /drivers/mfd/mc13xxx-spi.c | |
parent | d09b711a31ed891dc372039ccd347cdc8402da04 (diff) | |
download | linux-48ca9a52c58c088c7492185ef33d0675d6382b5a.tar.gz linux-48ca9a52c58c088c7492185ef33d0675d6382b5a.tar.bz2 linux-48ca9a52c58c088c7492185ef33d0675d6382b5a.zip |
mfd: mc13xxx-core: Initialize the lock prior to using it
After request_threaded_irq() is called there is a chance that an interrupt
may occur before the 'mc13xxx->lock' is initialized, which will trigger a kernel
oops.
In order to prevent that, move the initialization of 'mc13xxx->lock' prior to
requesting the interrupts.
Suggested-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/mc13xxx-spi.c')
0 files changed, 0 insertions, 0 deletions