]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] prng: fix pointer arithmetic
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 27 Apr 2011 07:34:33 +0000 (09:34 +0200)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Wed, 27 Apr 2011 07:34:45 +0000 (09:34 +0200)
commitf3e2d7bf5ffd9f2eb9093089d7436c56b08d0a80
tree8d3b2cf0b718879b802fc28f4eac9f3020fc3d1c
parent1d738dd8d31be14108be306a4e4d9be6f8259d33
[S390] prng: fix pointer arithmetic

The git commit 9be1c9c934fc74af16f39fbb582d9fb558fdc98b fixed the
access beyond the end of the stack in prng_seed but the pointer
arithmetic is still incorrect. The calculation has been off by
a factor of 64, now it is only off by a factor of 8. prng_seed
is called with a maximum of 16 for nbytes, small enough that
the incorrect calculation stays insides the limits of the stack.
Place parentheses for correct pointer arithmetic.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/crypto/prng.c