lkml.org 
[lkml]   [2004]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] fix load_elf_binary error path on unshare_files error
Make sure to return proper retval on unshare_files() error in
load_elf_binary. Patch against 2.4.26-rc2.

Error noted by Kirill Korotaev <kirillx@7ka.mipt.ru>.

===== fs/binfmt_elf.c 1.28 vs edited =====
--- 1.28/fs/binfmt_elf.c Thu Jan 29 15:08:42 2004
+++ edited/fs/binfmt_elf.c Thu Apr 8 15:12:15 2004
@@ -479,7 +479,8 @@
goto out_free_ph;

files = current->files; /* Refcounted so ok */
- if(unshare_files() < 0)
+ retval = unshare_files();
+ if (retval < 0)
goto out_free_ph;
if (files == current->files) {
put_files_struct(files);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.021 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site