about summary refs log tree commit diff
path: root/crypt
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-07-22 23:19:30 -0400
committerUlrich Drepper <drepper@gmail.com>2011-07-22 23:19:30 -0400
commit90f139ddd0cfbb1f0b0ebd1fb73d4e2a2765f83b (patch)
treee20d126f90c4c74e368e1ab2ae96fe1b1641c304 /crypt
parent1d002f25399c0a0ed2cc276d4ee18db869152384 (diff)
downloadglibc-90f139ddd0cfbb1f0b0ebd1fb73d4e2a2765f83b.tar.gz
glibc-90f139ddd0cfbb1f0b0ebd1fb73d4e2a2765f83b.tar.xz
glibc-90f139ddd0cfbb1f0b0ebd1fb73d4e2a2765f83b.zip
Add read barrier protecting DES initialization
Diffstat (limited to 'crypt')
-rw-r--r--crypt/crypt_util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/crypt/crypt_util.c b/crypt/crypt_util.c
index 7999a30672..2576ccbce5 100644
--- a/crypt/crypt_util.c
+++ b/crypt/crypt_util.c
@@ -1,7 +1,8 @@
 /*
  * UFC-crypt: ultra fast crypt(3) implementation
  *
- * Copyright (C) 1991-1993,1996-1998,2000,2010 Free Software Foundation, Inc.
+ * Copyright (C) 1991-1993,1996-1998,2000,2010,2011
+ * Free Software Foundation, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -475,7 +476,8 @@ __init_des_r(__data)
 small_tables_done:
     __libc_lock_unlock(_ufc_tables_lock);
 #endif
-  }
+  } else
+    atomic_read_barrier ();
 
   /*
    * Create the sb tables: