From: Sridhar Samudrala Date: Fri, 21 Jul 2006 21:45:47 +0000 (-0700) Subject: [SCTP]: Check for NULL arg to sctp_bucket_destroy(). X-Git-Tag: v2.6.18-rc3~59^2~15 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=37fa6878bcd54c25fbe6ebb3da5cf0d3a4bc7a65;p=linux-2.6-omap-h63xx.git [SCTP]: Check for NULL arg to sctp_bucket_destroy(). Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller --- diff --git a/net/sctp/socket.c b/net/sctp/socket.c index 0a2c71d0d8a..518c55ab610 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -4977,7 +4977,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->owner)) { + if (pp && hlist_empty(&pp->owner)) { if (pp->next) pp->next->pprev = pp->pprev; *(pp->pprev) = pp->next;