diff options
author | Jarkko Nikula <jarkko.nikula@linux.intel.com> | 2019-08-15 16:52:11 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-21 07:17:06 +0200 |
commit | 65ad72ce10e7185e2f8e257fad33f9b5d4158da0 (patch) | |
tree | 9919eb2100afbc9d333ed97d043e24fde410f002 /arch/powerpc/lib/quad.S | |
parent | 5a45b14b03f78be330fcc69ea1be23eaaac6617c (diff) | |
download | linux-stable-65ad72ce10e7185e2f8e257fad33f9b5d4158da0.tar.gz linux-stable-65ad72ce10e7185e2f8e257fad33f9b5d4158da0.tar.bz2 linux-stable-65ad72ce10e7185e2f8e257fad33f9b5d4158da0.zip |
i2c: designware: Synchronize IRQs when unregistering slave client
[ Upstream commit c486dcd2f1bbdd524a1e0149734b79e4ae329650 ]
Make sure interrupt handler i2c_dw_irq_handler_slave() has finished
before clearing the the dev->slave pointer in i2c_dw_unreg_slave().
There is possibility for a race if i2c_dw_irq_handler_slave() is running
on another CPU while clearing the dev->slave pointer.
Reported-by: Krzysztof Adamski <krzysztof.adamski@nokia.com>
Reported-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/powerpc/lib/quad.S')
0 files changed, 0 insertions, 0 deletions