Skip to content

Commit 935a7f6

Browse files
Li Zefandavem330
authored andcommitted
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>
1 parent e8c3875 commit 935a7f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/sctp/socket.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5761,8 +5761,8 @@ static struct sctp_bind_bucket *sctp_bucket_create(
57615761
struct sctp_bind_bucket *pp;
57625762

57635763
pp = kmem_cache_alloc(sctp_bucket_cachep, GFP_ATOMIC);
5764-
SCTP_DBG_OBJCNT_INC(bind_bucket);
57655764
if (pp) {
5765+
SCTP_DBG_OBJCNT_INC(bind_bucket);
57665766
pp->port = snum;
57675767
pp->fastreuse = 0;
57685768
INIT_HLIST_HEAD(&pp->owner);

0 commit comments

Comments
 (0)