Re: [PATCH] ata: ata_piix: Fix a possible data race in piix_pci_device_resume

2018-05-08 Thread Tejun Heo
Hello, On Tue, May 08, 2018 at 11:46:13AM +0800, Jia-Ju Bai wrote: > The write operation to "host->flags" is protected by > the lock on line 1048, but the read operation to > this data on line 1046 is not protected by the lock. > Thus, there may exist a data race for "host->flags". > > To fix thi

[PATCH] ata: ata_piix: Fix a possible data race in piix_pci_device_resume

2018-05-07 Thread Jia-Ju Bai
The write operation to "host->flags" is protected by the lock on line 1048, but the read operation to this data on line 1046 is not protected by the lock. Thus, there may exist a data race for "host->flags". To fix this data race, the read operation to "host->flags" should be also protected by th