aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2008-04-10 04:58:06 -0400
committerDavid S. Miller <davem@davemloft.net>2008-04-10 04:58:06 -0400
commit935a7f6e4d2f2c69a2d94cbda377684fffbdcb27 (patch)
treec86bd97a3803713c6979a43181f8ad97c5ef6ce3 /net/sctp
parente8c38751be84e2e930642be60331fbb6d3c4becb (diff)
SCTP: fix wrong debug counting of bind_bucket
Should not count it if the allocation of the object is failed. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-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 00ebd0610be2..025f467d80dd 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -5761,8 +5761,8 @@ static struct sctp_bind_bucket *sctp_bucket_create(
5761 struct sctp_bind_bucket *pp; 5761 struct sctp_bind_bucket *pp;
5762 5762
5763 pp = kmem_cache_alloc(sctp_bucket_cachep, GFP_ATOMIC); 5763 pp = kmem_cache_alloc(sctp_bucket_cachep, GFP_ATOMIC);
5764 SCTP_DBG_OBJCNT_INC(bind_bucket);
5765 if (pp) { 5764 if (pp) {
5765 SCTP_DBG_OBJCNT_INC(bind_bucket);
5766 pp->port = snum; 5766 pp->port = snum;
5767 pp->fastreuse = 0; 5767 pp->fastreuse = 0;
5768 INIT_HLIST_HEAD(&pp->owner); 5768 INIT_HLIST_HEAD(&pp->owner);