diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2008-04-10 04:57:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-10 04:57:24 -0400 |
commit | e8c38751be84e2e930642be60331fbb6d3c4becb (patch) | |
tree | 5bb1bc4f6a53abf39ed588dd0d1b5c556389c464 | |
parent | 2fa7527ba1d38175d1e42f7cb72bae5de3d55cc7 (diff) |
SCTP: fix wrong debug counting of datamsg
Should not count it if the allocation of this object
failed.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/sctp/chunk.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sctp/chunk.c b/net/sctp/chunk.c index ed857643e3ff..1748ef90950c 100644 --- a/net/sctp/chunk.c +++ b/net/sctp/chunk.c | |||
@@ -66,9 +66,10 @@ SCTP_STATIC struct sctp_datamsg *sctp_datamsg_new(gfp_t gfp) | |||
66 | { | 66 | { |
67 | struct sctp_datamsg *msg; | 67 | struct sctp_datamsg *msg; |
68 | msg = kmalloc(sizeof(struct sctp_datamsg), gfp); | 68 | msg = kmalloc(sizeof(struct sctp_datamsg), gfp); |
69 | if (msg) | 69 | if (msg) { |
70 | sctp_datamsg_init(msg); | 70 | sctp_datamsg_init(msg); |
71 | SCTP_DBG_OBJCNT_INC(datamsg); | 71 | SCTP_DBG_OBJCNT_INC(datamsg); |
72 | } | ||
72 | return msg; | 73 | return msg; |
73 | } | 74 | } |
74 | 75 | ||