]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/file.c
kill bogus BUG_ON() in do_close_on_exec()
[karo-tx-linux.git] / fs / file.c
index d3b5fa80b71b76a973919a6b9cfa2ebb34096adf..331e7d24d9d307864a62c5c681be789d396d1410 100644 (file)
--- a/fs/file.c
+++ b/fs/file.c
@@ -685,7 +685,6 @@ void do_close_on_exec(struct files_struct *files)
        struct fdtable *fdt;
 
        /* exec unshares first */
-       BUG_ON(atomic_read(&files->count) != 1);
        spin_lock(&files->file_lock);
        for (i = 0; ; i++) {
                unsigned long set;