OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fa7527
)
SCTP: fix wrong debug counting of datamsg
author
Li Zefan
<lizf@cn.fujitsu.com>
Thu, 10 Apr 2008 08:57:24 +0000
(
01:57
-0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 10 Apr 2008 08:57:24 +0000
(
01:57
-0700)
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>
net/sctp/chunk.c
patch
|
blob
|
history
diff --git
a/net/sctp/chunk.c
b/net/sctp/chunk.c
index
ed85764
..
1748ef9
100644
(file)
--- 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)
{
struct sctp_datamsg *msg;
msg = kmalloc(sizeof(struct sctp_datamsg), gfp);
- if (msg)
+ if (msg)
{
sctp_datamsg_init(msg);
- SCTP_DBG_OBJCNT_INC(datamsg);
+ SCTP_DBG_OBJCNT_INC(datamsg);
+ }
return msg;
}