]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: piix4: Request the SMBUS semaphore inside the mutex
authorRicardo Ribalda <ricardo.ribalda@gmail.com>
Thu, 2 Feb 2017 19:15:16 +0000 (20:15 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 9 Feb 2017 16:13:01 +0000 (17:13 +0100)
commit4e022851da381d670143b34df9ea7a2eef653861
treeb769e165ad52c0021054f1a048b62bd7e4fbec47
parenta842ab88e117bdd1ef3e6b9e380e7617e6c73411
i2c: piix4: Request the SMBUS semaphore inside the mutex

SMBSLVCNT must be protected with the piix4_mutex_sb800 in order to avoid
multiple buses accessing to the semaphore at the same time.

Fixes: aed596204102 ("i2c: piix4: Avoid race conditions with IMC")
Reported-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-piix4.c