diff options
-rw-r--r-- | fs/proc/generic.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c index a36ad3c75cf4..f501f3211abc 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c | |||
@@ -777,7 +777,12 @@ continue_removing: | |||
777 | if (S_ISDIR(de->mode)) | 777 | if (S_ISDIR(de->mode)) |
778 | parent->nlink--; | 778 | parent->nlink--; |
779 | de->nlink = 0; | 779 | de->nlink = 0; |
780 | WARN_ON(de->subdir); | 780 | if (de->subdir) { |
781 | printk(KERN_WARNING "%s: removing non-empty directory " | ||
782 | "'%s/%s', leaking at least '%s'\n", __func__, | ||
783 | de->parent->name, de->name, de->subdir->name); | ||
784 | WARN_ON(1); | ||
785 | } | ||
781 | if (atomic_dec_and_test(&de->count)) | 786 | if (atomic_dec_and_test(&de->count)) |
782 | free_proc_entry(de); | 787 | free_proc_entry(de); |
783 | break; | 788 | break; |