patch-1.3.96 linux/net/core/iovec.c

Next file: linux/net/core/skbuff.c
Previous file: linux/net/core/dev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.95/linux/net/core/iovec.c linux/net/core/iovec.c
@@ -35,11 +35,11 @@
 	{
 		if(mode==VERIFY_READ) {
 			err=move_addr_to_kernel(m->msg_name, m->msg_namelen, address);
-			m->msg_name = address;
 		} else
 			err=verify_area(mode, m->msg_name, m->msg_namelen);
 		if(err<0)
 			return err;
+		m->msg_name = address;
 	}
 	if(m->msg_accrights!=NULL)
 	{

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this