summaryrefslogtreecommitdiff
path: root/target/linux/coldfire/patches/041-Fix-CAU-driver-bug-for-SHA1-digest-algorithm.patch
blob: 87df7809b8eb4a06febee8456e87c6dfa6c81954 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From da0df827fa9600b3104d4b8d8cc3edbdd5a0849b Mon Sep 17 00:00:00 2001
From: Alison Wang <b18965@freescale.com>
Date: Thu, 4 Aug 2011 09:59:53 +0800
Subject: [PATCH 41/52] Fix CAU driver bug for SHA1 digest algorithm

Make the compiler to never inline a particular member
function.

Signed-off-by: Alison Wang <b18965@freescale.com>
---
 drivers/crypto/mcfcau-sha1.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

--- a/drivers/crypto/mcfcau-sha1.c
+++ b/drivers/crypto/mcfcau-sha1.c
@@ -60,7 +60,8 @@ struct mcfcau_sha1_ctx {
 	u8 buffer[64];
 };
 
-static void mcfcau_sha1_transform(__u32 *digest, const char *in, __u32 *W)
+static noinline void mcfcau_sha1_transform(__u32 *digest,
+		const char *in, __u32 *W)
 {
 	int i;
 	u32 *tmp_p;