diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-10-16 12:01:47 +0900 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2018-10-29 18:53:37 +0000 |
commit | f1fdcbbdf45d9609f3d4063b67e9ea941ba3a58f (patch) | |
tree | 2e30f3ef1dd453403186443b6ba7580c580aef22 /mm/hmm.c | |
parent | a560ae55dcc3ae43c0c5764c745d3d1f0257beee (diff) | |
download | linux-f1fdcbbdf45d9609f3d4063b67e9ea941ba3a58f.tar.bz2 |
i2c: uniphier-f: make driver robust against concurrency
This is unlikely to happen, but it is possible for a CPU to enter
the interrupt handler just after wait_for_completion_timeout() has
expired. If this happens, the hardware is accessed from multiple
contexts concurrently.
Disable the IRQ after wait_for_completion_timeout(), and do nothing
from the handler when the IRQ is disabled.
Fixes: 6a62974b667f ("i2c: uniphier_f: add UniPhier FIFO-builtin I2C driver")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'mm/hmm.c')
0 files changed, 0 insertions, 0 deletions