Comment # 14 on bug 1188327 from
I will send the following patch upstream shortly:

diff --git a/crypto/ecc.h b/crypto/ecc.h
index a006132646a4..5e2d9045208c 100644
--- a/crypto/ecc.h
+++ b/crypto/ecc.h
@@ -27,6 +27,7 @@
 #define _CRYPTO_ECC_H

 #include <crypto/ecc_curve.h>
+#include <asm/unaligned.h>

 /* One digit is u64 qword. */
 #define ECC_CURVE_NIST_P192_DIGITS  3
@@ -52,7 +53,7 @@ static inline void ecc_swap_digits(const u64 *in, u64 *out,
unsigned int ndigits
        int i;

        for (i = 0; i < ndigits; i++)
-               out[i] = be64_to_cpu(src[ndigits - 1 - i]);
+               out[i] = get_unaligned_be64(&src[ndigits - 1 - i]);
 }


You are receiving this mail because: