From: Jim Meyering Date: Fri, 8 Feb 2008 12:22:09 +0000 (-0800) Subject: uml: improved error handling while locating temp dir X-Git-Tag: v2.6.25-rc1~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11a7ac23a2d7464a74ceb7b97dbae4d5a0208576;p=pandora-kernel.git uml: improved error handling while locating temp dir * arch/um/os-Linux/mem.c (make_tempfile): Don't deref NULL upon failed malloc. * arch/um/os-Linux/mem.c (make_tempfile): Handle NULL tempdir. Don't let a long tempdir (e.g., via TMPDIR) provoke heap corruption. [ jdike - formatting cleanups, deleted obsolete comment ] Signed-off-by: Jim Meyering Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed