]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
parisc/unaligned: Fix ldw() and stw() unalignment handlers
authorHelge Deller <deller@gmx.de>
Fri, 18 Feb 2022 22:40:14 +0000 (23:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2022 10:32:00 +0000 (11:32 +0100)
commitb7e5d8a1c79a827d98164911dbd788f42e2ae104
treeca90d7130518dafb41ae0e7afd594c09a390aae9
parent804df8b81a282f031212438f0071f61abcff66d2
parisc/unaligned: Fix ldw() and stw() unalignment handlers

commit a97279836867b1cb50a3d4f0b1bf60e0abe6d46c upstream.

Fix 3 bugs:

a) emulate_stw() doesn't return the error code value, so faulting
instructions are not reported and aborted.

b) Tell emulate_ldw() to handle fldw_l as floating point instruction

c) Tell emulate_ldw() to handle ldw_m as integer instruction

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/kernel/unaligned.c