Commit 849214b4 authored by Jon Grimm's avatar Jon Grimm

[SCTP] Fix wrong logic in hlist change.

Otherwise, we leak bind_buckets.
parent a2914205
......@@ -3572,7 +3572,7 @@ static struct sctp_bind_bucket *sctp_bucket_create(
/* Caller must hold hashbucket lock for this tb with local BH disabled */
static void sctp_bucket_destroy(struct sctp_bind_bucket *pp)
{
if (!hlist_empty(&pp->sk_list)) {
if (hlist_empty(&pp->sk_list)) {
if (pp->next)
pp->next->pprev = pp->pprev;
*(pp->pprev) = pp->next;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment