Message ID | 1249658237-9031-1-git-send-email-vladislav.yasevich@hp.com |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Vlad Yasevich <vladislav.yasevich@hp.com> Date: Fri, 7 Aug 2009 11:17:17 -0400 > From: Rafael Laufer <rlaufer@cisco.com> > > Commit 1748376b6626acf59c24e9592ac67b3fe2a0e026, > net: Use a percpu_counter for sockets_allocated > > added percpu_counter function calls to sctp_proc_init code path, but > forgot to add them to sctp_proc_exit(). This resulted in a following > Ooops when performing this test ... > Signed-off-by: Rafael Laufer <rlaufer@cisco.com> > Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com> Applied. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 79cbd47..a76da65 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -160,6 +160,7 @@ static void sctp_proc_exit(void) remove_proc_entry("sctp", init_net.proc_net); } #endif + percpu_counter_destroy(&sctp_sockets_allocated); } /* Private helper to extract ipv4 address and stash them in