Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Li Zefan and committed by
David S. Miller
935a7f6e e8c38751

+1 -1
+1 -1
net/sctp/socket.c
··· 5761 5761 struct sctp_bind_bucket *pp; 5762 5762 5763 5763 pp = kmem_cache_alloc(sctp_bucket_cachep, GFP_ATOMIC); 5764 - SCTP_DBG_OBJCNT_INC(bind_bucket); 5765 5764 if (pp) { 5765 + SCTP_DBG_OBJCNT_INC(bind_bucket); 5766 5766 pp->port = snum; 5767 5767 pp->fastreuse = 0; 5768 5768 INIT_HLIST_HEAD(&pp->owner);