]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PowerPC] Fix atomic_cmpset_masked().
authorBrandon Bergren <bdragon@FreeBSD.org>
Tue, 26 May 2020 19:03:45 +0000 (19:03 +0000)
committerBrandon Bergren <bdragon@FreeBSD.org>
Tue, 26 May 2020 19:03:45 +0000 (19:03 +0000)
commit9941cb0657d63b4b1570dcf384196bb599bf9024
tree28d751391af2dfa6b11bf6c7e8b69347b5ee03a1
parentd75038a0af0726561d1d6bd1729d4e00c803fa22
[PowerPC] Fix atomic_cmpset_masked().

A recent kernel change caused the previously unused atomic_cmpset_masked() to
be used.

It had a typo in it.

Instead of reading the old value from an uninitialized variable, read it
from the passed-in pointer as intended.

This fixes crashes on 64 bit Book-E.

Obtained from: jhibbits
sys/powerpc/include/atomic.h