Commit 775fd6bf authored by Max Filippov's avatar Max Filippov

xtensa: fix change_bit in exclusive access option

change_bit implementation for XCHAL_HAVE_EXCLUSIVE case changes all bits
except the one required due to copy-paste error from clear_bit.

Cc: stable@vger.kernel.org # v5.2+
Fixes: f7c34874 ("xtensa: add exclusive atomics support")
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent 0c401fdf
...@@ -148,7 +148,7 @@ static inline void change_bit(unsigned int bit, volatile unsigned long *p) ...@@ -148,7 +148,7 @@ static inline void change_bit(unsigned int bit, volatile unsigned long *p)
" getex %0\n" " getex %0\n"
" beqz %0, 1b\n" " beqz %0, 1b\n"
: "=&a" (tmp) : "=&a" (tmp)
: "a" (~mask), "a" (p) : "a" (mask), "a" (p)
: "memory"); : "memory");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment