exec: setup_arg_pages() fails to return errors
authorAnton Blanchard <anton@samba.org>
Wed, 11 Nov 2009 22:26:48 +0000 (14:26 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Nov 2009 15:25:58 +0000 (07:25 -0800)
commitfc63cf237078c86214abcb2ee9926d8ad289da9b
tree3af8571390aec334b7f47c08ba0cff0a72d6fbb3
parent93f40e6f1493ae0c1e04760b221c125ef5e47205
exec: setup_arg_pages() fails to return errors

In setup_arg_pages we work hard to assign a value to ret, but on exit we
always return 0.

Also remove a now duplicated exit path and branch to out_unlock instead.

Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c