patch-2.1.11 linux/net/ipv4/rarp.c

Next file: linux/net/ipv4/raw.c
Previous file: linux/net/ipv4/packet.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.10/linux/net/ipv4/rarp.c linux/net/ipv4/rarp.c
@@ -436,7 +436,7 @@
  *        Copy the information back
  */
   
-	return copy_to_user(req, &r, sizeof(r));
+	return copy_to_user(req, &r, sizeof(r)) ? -EFAULT : 0;
 }
 
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov