diff options
author | Jarkko Nikula <[email protected]> | 2019-08-15 16:52:11 +0300 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2019-08-29 20:47:42 +0200 |
commit | c486dcd2f1bbdd524a1e0149734b79e4ae329650 (patch) | |
tree | 1d84dbe0a4f9cc0b40772e9abb0d25e0da7df8fa /lib/memory-notifier-error-inject.c | |
parent | 01641b266da33e2cc57b4ea1767ba3e24ce0846b (diff) |
i2c: designware: Synchronize IRQs when unregistering slave client
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 <[email protected]>
Reported-by: Wolfram Sang <[email protected]>
Signed-off-by: Jarkko Nikula <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions