aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/sctp/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index 0a2c71d0d8aa..518c55ab610b 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -4977,7 +4977,7 @@ static struct sctp_bind_bucket *sctp_bucket_create(
4977/* Caller must hold hashbucket lock for this tb with local BH disabled */ 4977/* Caller must hold hashbucket lock for this tb with local BH disabled */
4978static void sctp_bucket_destroy(struct sctp_bind_bucket *pp) 4978static void sctp_bucket_destroy(struct sctp_bind_bucket *pp)
4979{ 4979{
4980 if (hlist_empty(&pp->owner)) { 4980 if (pp && hlist_empty(&pp->owner)) {
4981 if (pp->next) 4981 if (pp->next)
4982 pp->next->pprev = pp->pprev; 4982 pp->next->pprev = pp->pprev;
4983 *(pp->pprev) = pp->next; 4983 *(pp->pprev) = pp->next;