SCTP: fix wrong debug counting of bind_bucket
Subsystems (3)
PATCH 2/2 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 <[email protected]>
--- net/sctp/socket.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/sctp/socket.c +1 -1
@@ -5761,8 +5761,8 @@ static struct sctp_bind_bucket *sctp_bucket_create(struct sctp_bind_bucket *pp; pp =kmem_cache_alloc (sctp_bucket_cachep,GFP_ATOMIC ); -SCTP_DBG_OBJCNT_INC (bind_bucket);if (pp) { +SCTP_DBG_OBJCNT_INC (bind_bucket); pp->port = snum; pp->fastreuse =0 ;INIT_HLIST_HEAD (&pp->owner);
Signature · 1 line
1.5.4.rc3
David Miller
maintainerFrom: Li Zefan <[email protected]>
Date: Tue, 01 Apr 2008 11:42:12 +0800
Quoted 4 lines
Should not count it if the allocation of the object is failed.
Signed-off-by Li Zefan <[email protected]>
Also applied to net-2.6.26, thanks.