]> git.hungrycats.org Git - linux/commit
[PATCH] fix memory leak in load_elf_binary()
authorAndrew Morton <akpm@digeo.com>
Sat, 8 Mar 2003 11:27:24 +0000 (03:27 -0800)
committerJames Bottomley <jejb@raven.il.steeleye.com>
Sat, 8 Mar 2003 11:27:24 +0000 (03:27 -0800)
commit3ed88a51ae0dd0cbc182d1bf304478cf9c228a0e
tree67472a13ed18fd5e3c111f9c3ba2ed6635b9962d
parenta54785ce0a2b7f1bcfa7298548bb2fdd40d64c9b
[PATCH] fix memory leak in load_elf_binary()

- Fix an error-path leak of memory and a dentry in load_elf_binary()
  (spotted by Oleg Drokin).

- Tidy up the handling of bad executable images: return -ENOEXEC rather
  than 0.  (We've committed suicide anyway, so probably nobody gets to see
  this).

- Fix up the logic in load_aout_interp().  It gets itself all set up to
  return -ENOEXEC but there is in fact no path by which it can do this.  Just
  return ~0UL on errors, like load_elf_interp().
fs/binfmt_elf.c