patch-2.2.18 linux/fs/binfmt_elf.c

Next file: linux/fs/binfmt_em86.c
Previous file: linux/fs/adfs/super.c
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/fs/binfmt_elf.c linux/fs/binfmt_elf.c
@@ -594,8 +594,8 @@
 		    bprm->argc++;
 		  }
 		}
-		retval = -E2BIG;
-		if (!bprm->p)
+		retval = (long)bprm->p;
+		if ((long)bprm->p < 0)
 			goto out_free_dentry;
 	}
 

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