Subject: [PATCH 8/9] Fix leaking of kernel heap addresses in net/

From: Dan Rosenberg <[email-masked]>
Date: Sun, 07 Nov 2010 11:33:05 -0500

Signed-off-by: Dan Rosenberg <[email-masked]>

diff -urp linux-2.6.37-rc1.orig/net/rxrpc/af_rxrpc.c linux-2.6.37-rc1/net/rxrpc/af_rxrpc.c
--- linux-2.6.37-rc1.orig/net/rxrpc/af_rxrpc.c	2010-11-01 07:54:12.000000000 -0400
+++ linux-2.6.37-rc1/net/rxrpc/af_rxrpc.c	2010-11-07 10:47:34.000000000 -0500
@@ -670,7 +670,8 @@ static void rxrpc_sock_destructor(struct
 	WARN_ON(sk->sk_socket);
 
 	if (!sock_flag(sk, SOCK_DEAD)) {
-		printk("Attempt to release alive rxrpc socket: %p\n", sk);
+		printk(KERN_ERR "Attempt to release alive rxrpc socket: %lu\n",
+			sock_i_ino(sk));
 		return;
 	}
 }