X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=fs%2Fproc%2Fproc_sysctl.c;h=7325baa8f9d474f166c1bbef54b584a028b287fb;hb=f6111b9d7970df07f783d3891735003fef2bc37e;hp=d653907275419435e4bad20de2f1a704b5c9d6c3;hpb=6536c5f2c8cf79db0d37e79afcdb227dc854509c;p=linux-2.6-microblaze.git 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) if (--header->nreg) return; - if (parent) + if (parent) { put_links(header); - start_unregistering(header); + start_unregistering(header); + } + if (!--header->count) kfree_rcu(header, rcu);