]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: emev2: avoid race when unregistering slave client
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 8 Aug 2019 19:54:17 +0000 (21:54 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 14 Aug 2019 12:49:43 +0000 (14:49 +0200)
commitb864b184820a2726879cd829b3c12e25c0854ee4
tree7eabc9f12af39ab71bee73ab3927e84219b5ef94
parent8019cb83e611a8d12b6ff384a85d07baa0761709
i2c: emev2: avoid race when unregistering slave client

After we disabled interrupts, there might still be an active one
running. Sync before clearing the pointer to the slave device.

Fixes: 27ef1080497d ("i2c: emev2: add slave support")
Reported-by: Krzysztof Adamski <krzysztof.adamski@nokia.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Krzysztof Adamski <krzysztof.adamski@nokia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-emev2.c