diff options
-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 d65390727541..7325baa8f9d4 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c | |||
@@ -1626,9 +1626,11 @@ static void drop_sysctl_table(struct ctl_table_header *header) | |||
1626 | if (--header->nreg) | 1626 | if (--header->nreg) |
1627 | return; | 1627 | return; |
1628 | 1628 | ||
1629 | if (parent) | 1629 | if (parent) { |
1630 | put_links(header); | 1630 | put_links(header); |
1631 | start_unregistering(header); | 1631 | start_unregistering(header); |
1632 | } | ||
1633 | |||
1632 | if (!--header->count) | 1634 | if (!--header->count) |
1633 | kfree_rcu(header, rcu); | 1635 | kfree_rcu(header, rcu); |
1634 | 1636 | ||