patch-2.4.10 linux/fs/autofs/root.c

Next file: linux/fs/binfmt_aout.c
Previous file: linux/fs/attr.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/fs/autofs/root.c linux/fs/autofs/root.c
@@ -422,12 +422,11 @@
 static inline int autofs_get_set_timeout(struct autofs_sb_info *sbi,
 					 unsigned long *p)
 {
-	int rv;
 	unsigned long ntimeout;
 
-	if ( (rv = get_user(ntimeout, p)) ||
-	     (rv = put_user(sbi->exp_timeout/HZ, p)) )
-		return rv;
+	if (get_user(ntimeout, p) ||
+	    put_user(sbi->exp_timeout / HZ, p))
+		return -EFAULT;
 
 	if ( ntimeout > ULONG_MAX/HZ )
 		sbi->exp_timeout = 0;

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