aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/generic.c')
-rw-r--r--fs/proc/generic.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c
index d00c5af6f199..01e07f2a188f 100644
--- a/fs/proc/generic.c
+++ b/fs/proc/generic.c
@@ -826,12 +826,9 @@ void remove_proc_entry(const char *name, struct proc_dir_entry *parent)
826 826
827 wait_for_completion(de->pde_unload_completion); 827 wait_for_completion(de->pde_unload_completion);
828 828
829 goto continue_removing; 829 spin_lock(&de->pde_unload_lock);
830 } 830 }
831 spin_unlock(&de->pde_unload_lock);
832 831
833continue_removing:
834 spin_lock(&de->pde_unload_lock);
835 while (!list_empty(&de->pde_openers)) { 832 while (!list_empty(&de->pde_openers)) {
836 struct pde_opener *pdeo; 833 struct pde_opener *pdeo;
837 834