]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/s390/crypto/prng.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
[karo-tx-linux.git] / arch / s390 / crypto / prng.c
index 0fc8115b0aeac36fe170d4b91ce4083126613b8a..0808fbf0f7d3770d5a0b4c2d3267bf4eeafd2492 100644 (file)
@@ -76,7 +76,7 @@ static void prng_seed(int nbytes)
 
        /* Add the entropy */
        while (nbytes >= 8) {
-               *((__u64 *)parm_block) ^= *((__u64 *)buf+i*8);
+               *((__u64 *)parm_block) ^= *((__u64 *)(buf+i));
                prng_add_entropy();
                i += 8;
                nbytes -= 8;