]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/cifs/cifsfs.c
Merge tag 'random_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso...
[karo-tx-linux.git] / fs / cifs / cifsfs.c
index 556f480c6936a9ca5cd6d73a0feb674d10797f15..180b3356ff8612dfc7f3cd702e350bb284ca1a0d 100644 (file)
@@ -1354,7 +1354,7 @@ init_cifs(void)
        spin_lock_init(&cifs_tcp_ses_lock);
        spin_lock_init(&GlobalMid_Lock);
 
-       get_random_bytes(&cifs_lock_secret, sizeof(cifs_lock_secret));
+       cifs_lock_secret = get_random_u32();
 
        if (cifs_max_pending < 2) {
                cifs_max_pending = 2;