]> git.hungrycats.org Git - linux/commitdiff
ARM: 8449/1: fix bug in vdsomunge swab32 macro
authorH. Nikolaus Schaller <hns@goldelico.com>
Wed, 28 Oct 2015 18:00:26 +0000 (19:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Nov 2015 22:37:35 +0000 (14:37 -0800)
commit 38850d786a799c3ff2de0dc1980902c3263698dc upstream.

Commit 8a603f91cc48 ("ARM: 8445/1: fix vdsomunge not to depend on
glibc specific byteswap.h") unfortunately introduced a bug created but
not found during discussion and patch simplification.

Reported-by: Efraim Yawitz <efraim.yawitz@gmail.com>
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Fixes: 8a603f91cc48 ("ARM: 8445/1: fix vdsomunge not to depend on glibc specific byteswap.h")
Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/vdso/vdsomunge.c

index 0cebd98cd88c3fcbfcb88e0d3b1eae757755b3d4..f6455273b2f8768a303db0ccc4a4e875df08eb71 100644 (file)
@@ -66,7 +66,7 @@
        ((((x) & 0x000000ff) << 24) | \
         (((x) & 0x0000ff00) <<  8) | \
         (((x) & 0x00ff0000) >>  8) | \
-        (((x) & 0xff000000) << 24))
+        (((x) & 0xff000000) >> 24))
 
 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
 #define HOST_ORDER ELFDATA2LSB