diff options
author | Sridhar Samudrala <sri@us.ibm.com> | 2006-07-21 23:45:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-07-21 23:45:47 +0200 |
commit | 37fa6878bcd54c25fbe6ebb3da5cf0d3a4bc7a65 (patch) | |
tree | 87fab13350732feb446b474f00103a8d0dab829c /net | |
parent | [PKT_SCHED] netem: Fix slab corruption with netem (2nd try) (diff) | |
download | linux-37fa6878bcd54c25fbe6ebb3da5cf0d3a4bc7a65.tar.xz linux-37fa6878bcd54c25fbe6ebb3da5cf0d3a4bc7a65.zip |
[SCTP]: Check for NULL arg to sctp_bucket_destroy().
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/sctp/socket.c | 2 |
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( /* 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; |