Skip to content

Commit e37b94e

Browse files
Daniel Borkmannherbertx
Daniel Borkmann
authored andcommittedDec 9, 2013
crypto: memneq - fix for archs without efficient unaligned access
Commit fe8c8a1 introduced a possible build error for archs that do not have CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS set. :/ Fix this up by bringing else braces outside of the ifdef. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Fixes: fe8c8a1 ("crypto: more robust crypto_memneq") Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Acked-By: Cesar Eduardo Barros <cesarb@cesarb.eti.br> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent d1dd206 commit e37b94e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎crypto/memneq.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ static inline unsigned long __crypto_memneq_16(const void *a, const void *b)
108108
OPTIMIZER_HIDE_VAR(neq);
109109
neq |= *(unsigned int *)(a+12) ^ *(unsigned int *)(b+12);
110110
OPTIMIZER_HIDE_VAR(neq);
111-
} else {
111+
} else
112112
#endif /* CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS */
113+
{
113114
neq |= *(unsigned char *)(a) ^ *(unsigned char *)(b);
114115
OPTIMIZER_HIDE_VAR(neq);
115116
neq |= *(unsigned char *)(a+1) ^ *(unsigned char *)(b+1);

0 commit comments

Comments
 (0)
Please sign in to comment.