Commit 935a7f6e authored by Li Zefan's avatar Li Zefan Committed by David S. Miller

SCTP: fix wrong debug counting of bind_bucket

Should not count it if the allocation of the object
is failed.
Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e8c38751
...@@ -5761,8 +5761,8 @@ static struct sctp_bind_bucket *sctp_bucket_create( ...@@ -5761,8 +5761,8 @@ static struct sctp_bind_bucket *sctp_bucket_create(
struct sctp_bind_bucket *pp; struct sctp_bind_bucket *pp;
pp = kmem_cache_alloc(sctp_bucket_cachep, GFP_ATOMIC); pp = kmem_cache_alloc(sctp_bucket_cachep, GFP_ATOMIC);
SCTP_DBG_OBJCNT_INC(bind_bucket);
if (pp) { if (pp) {
SCTP_DBG_OBJCNT_INC(bind_bucket);
pp->port = snum; pp->port = snum;
pp->fastreuse = 0; pp->fastreuse = 0;
INIT_HLIST_HEAD(&pp->owner); INIT_HLIST_HEAD(&pp->owner);
......
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