X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=fs%2Fcoredump.c;h=a2f6ecc8e345432990bf4deb902c41104ba54fe5;hb=7cdf7c20e97141eadb05121cc521c8eff47e7d93;hp=c6acfc694f658201c2f165cba2c074ad4658fae8;hpb=9867cb1fd510187d8f828540bdb48f78fceb70b3;p=linux-2.6-microblaze.git diff --git a/fs/coredump.c b/fs/coredump.c index c6acfc694f65..a2f6ecc8e345 100644 --- a/fs/coredump.c +++ b/fs/coredump.c @@ -586,7 +586,6 @@ void do_coredump(const kernel_siginfo_t *siginfo) int ispipe; size_t *argv = NULL; int argc = 0; - struct files_struct *displaced; /* require nonrelative corefile path and be extra careful */ bool need_suid_safe = false; bool core_dumped = false; @@ -792,11 +791,10 @@ void do_coredump(const kernel_siginfo_t *siginfo) } /* get us an unshared descriptor table; almost always a no-op */ - retval = unshare_files(&displaced); + /* The cell spufs coredump code reads the file descriptor tables */ + retval = unshare_files(); if (retval) goto close_fail; - if (displaced) - put_files_struct(displaced); if (!dump_interrupted()) { /* * umh disabled with CONFIG_STATIC_USERMODEHELPER_PATH="" would