Thorsten Blum 21b9e722ad m68k: cmpxchg: Fix return value for default case in __arch_xchg()
The return value of __invalid_xchg_size() is assigned to tmp instead of
the return variable x. Assign it to x instead.

Fixes: 2501cf768e4009a0 ("m68k: Fix xchg/cmpxchg to fail to link if given an inappropriate pointer")
Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/20240702034116.140234-2-thorsten.blum@toblux.com
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
2024-07-09 09:19:31 +02:00
..
2024-05-23 19:40:26 -07:00
2023-11-02 15:31:01 -10:00
2023-10-06 10:03:04 +02:00
2022-04-11 11:48:01 +02:00
2024-05-08 17:43:22 +02:00