HomeFreeBSD

[PowerPC] Fix atomic_cmpset_masked().

Description

[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

(cherry picked from commit 9941cb0657d63b4b1570dcf384196bb599bf9024)

Details

Provenance
bdragonAuthored on May 26 2020, 7:03 PM
kevansCommitted on Oct 7 2021, 3:27 AM
Parents
rGe0363a08dc45: atomic: Add atomic_cmpset_masked to powerpc and use it
Branches
Unknown
Tags
Unknown