diff options
author | Chengfeng Ye <[email protected]> | 2023-07-07 08:49:41 +0000 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2023-08-14 18:17:13 +0200 |
commit | 4caf4cb1eaed469742ef719f2cc024b1ec3fa9e6 (patch) | |
tree | a257bf88ff4a7a7b9e9653a1a7b142e551b66265 /lib/test_fortify/write_overflow-memcpy.c | |
parent | 7d711966f94c189f38d9e2df05152a2336352ab8 (diff) |
i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue
iproc_i2c_rd_reg() and iproc_i2c_wr_reg() are called from both
interrupt context (e.g. bcm_iproc_i2c_isr) and process context
(e.g. bcm_iproc_i2c_suspend). Therefore, interrupts should be
disabled to avoid potential deadlock. To prevent this scenario,
use spin_lock_irqsave().
Fixes: 9a1038728037 ("i2c: iproc: add NIC I2C support")
Signed-off-by: Chengfeng Ye <[email protected]>
Acked-by: Ray Jui <[email protected]>
Reviewed-by: Andi Shyti <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions