diff options
author | Atsushi Nemoto <[email protected]> | 2020-05-08 22:12:48 +0900 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2020-05-15 11:23:49 +0200 |
commit | 5d4c7977499a736f3f80826bdc9744344ad55589 (patch) | |
tree | 4524c52e9cb2888ab5568013795cb54a9b9252d9 /drivers/fpga/fpga-mgr.c | |
parent | ab7cf7e53ccf1fecec6b72d1a3a13ff88193b490 (diff) |
i2c: altera: Fix race between xfer_msg and isr thread
Use a mutex to protect access to idev->msg_len, idev->buf, etc. which
are modified by both altr_i2c_xfer_msg() and altr_i2c_isr().
This is the minimal fix for easy backporting. A cleanup to remove the
spinlock will be added later.
Signed-off-by: Atsushi Nemoto <[email protected]>
Acked-by: Thor Thayer <[email protected]>
[wsa: updated commit message]
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions