patch-2.4.0-test5 linux/net/socket.c

Next file: linux/net/sunrpc/xprt.c
Previous file: linux/net/packet/af_packet.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test4/linux/net/socket.c linux/net/socket.c
@@ -757,7 +757,7 @@
 			fa->fa_fd=fd;
 			write_unlock_bh(&sk->callback_lock);
 
-			kfree_s(fna,sizeof(struct fasync_struct));
+			kfree(fna);
 			goto out;
 		}
 		fna->fa_file=filp;
@@ -775,7 +775,7 @@
 			write_lock_bh(&sk->callback_lock);
 			*prev=fa->fa_next;
 			write_unlock_bh(&sk->callback_lock);
-			kfree_s(fa,sizeof(struct fasync_struct));
+			kfree(fa);
 		}
 	}
 

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