]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitbbb27fc33d44e7b8d96369810654df4ee1837566
treeb769e165ad52c0021054f1a048b62bd7e4fbec47
parentf43128c75202f29ee71aa83e6c320a911137c189
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: 701dc207bf55 ("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