]> err.no Git - linux-2.6/commit
[Patch] fs/binfmt_elf.c: fix wrong return values
authorWANG Cong <xiyou.wangcong@gmail.com>
Thu, 8 May 2008 13:52:33 +0000 (21:52 +0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 16 May 2008 21:23:11 +0000 (17:23 -0400)
commit23c4971e3d97de4e1b7961ca6eacee35aa15ce5f
tree5bf0df37e7232b5a867074242645a98a217688f0
parent08a6fac1c63233c87eec129938022f1a9a4d51f6
[Patch] fs/binfmt_elf.c: fix wrong return values

create_elf_tables() returns 0 on success. But when strnlen_user() "fails",
it returns 0 directly. So this is wrong.

Signed-off-by: WANG Cong <wangcong@zeuux.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/binfmt_elf.c