patch-2.4.0-test5 linux/drivers/char/random.c

Next file: linux/drivers/char/rtc.c
Previous file: linux/drivers/char/msp3400.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test4/linux/drivers/char/random.c linux/drivers/char/random.c
@@ -509,7 +509,7 @@
 
 	r->pool = kmalloc(poolwords*4, GFP_KERNEL);
 	if (!r->pool) {
-		kfree_s(r, sizeof(struct entropy_store));
+		kfree(r);
 		return -ENOMEM;
 	}
 	memset(r->pool, 0, poolwords*4);
@@ -531,7 +531,7 @@
 {
 	if (r->pool)
 		kfree(r->pool);
-	kfree_s(r, sizeof(struct entropy_store));
+	kfree(r);
 }
 
 /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)