diff options
Diffstat (limited to 'fs/proc/proc_sysctl.c')
-rw-r--r-- | fs/proc/proc_sysctl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index 2d61e5e8c863..c74570736b24 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c | |||
@@ -1643,9 +1643,11 @@ static void drop_sysctl_table(struct ctl_table_header *header) | |||
1643 | if (--header->nreg) | 1643 | if (--header->nreg) |
1644 | return; | 1644 | return; |
1645 | 1645 | ||
1646 | if (parent) | 1646 | if (parent) { |
1647 | put_links(header); | 1647 | put_links(header); |
1648 | start_unregistering(header); | 1648 | start_unregistering(header); |
1649 | } | ||
1650 | |||
1649 | if (!--header->count) | 1651 | if (!--header->count) |
1650 | kfree_rcu(header, rcu); | 1652 | kfree_rcu(header, rcu); |
1651 | 1653 | ||