]> err.no Git - linux-2.6/blobdiff - fs/exec.c
slab: shut down cache_reaper when cpu goes down
[linux-2.6] / fs / exec.c
index f1691cd0c9d24c342bf246c0f52331fc44596107..1ba85c7fc6af7e4290ac494563f3fc6c8d8587bd 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -100,6 +100,7 @@ int unregister_binfmt(struct linux_binfmt * fmt)
        while (*tmp) {
                if (fmt == *tmp) {
                        *tmp = fmt->next;
+                       fmt->next = NULL;
                        write_unlock(&binfmt_lock);
                        return 0;
                }