Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.30-rc6-git5 /drivers/char/random.c

Filename:/drivers/char/random.c
Lines Added:1
Lines Deleted:1
Also changed in: (Previous) 2.6.30-rc6  2.6.30-rc5  2.6.30-rc4-git4  2.6.30-rc4  2.6.30-rc3  2.6.30-rc2 
(Following) 2.6.30-rc6-git6  2.6.30-rc6-git7  2.6.30-rc6-git8  2.6.30-rc7  2.6.30-rc8  2.6.30 

Location
[  2.6.30-rc6-git5
  [  drivers
    [  char
       o  random.c

Patch

diff --git a/drivers/char/random.c b/drivers/char/random.c
index b2ced39..8c74448 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -1673,7 +1673,7 @@ unsigned int get_random_int(void)
    int ret;
 
    keyptr = get_keyptr();
-   hash[0] += current->pid + jiffies + get_cycles() + (int)(long)&ret;
+   hash[0] += current->pid + jiffies + get_cycles();
 
    ret = half_md4_transform(hash, keyptr->secret);
    put_cpu_var(get_random_int_hash);


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.