do_coredump(): check return from argv_split()
authorTetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Tue, 6 Jan 2009 22:41:11 +0000 (14:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 23:59:14 +0000 (15:59 -0800)
commit350eaf791bebccb9ad5999351f3e328319545f03
tree7a9b18b1c2ab34cf62ae5862fbf1cc629ed383fa
parent26e5438e4b77f04a51870f9415ffed68004fac1d
do_coredump(): check return from argv_split()

do_coredump() accesses helper_argv[0] without checking helper_argv !=
NULL.  This can happen if page allocation failed.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c