projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8c3875
)
SCTP: fix wrong debug counting of bind_bucket
author
Li Zefan
<lizf@cn.fujitsu.com>
Thu, 10 Apr 2008 08:58:06 +0000
(
01:58
-0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 10 Apr 2008 08:58:06 +0000
(
01:58
-0700)
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>
net/sctp/socket.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sctp/socket.c
b/net/sctp/socket.c
index 00ebd0610be2509f840634e757ee583af8e5dacc..025f467d80dd8069c80a09d35f01c82937cf8d28 100644
(file)
--- a/
net/sctp/socket.c
+++ b/
net/sctp/socket.c
@@
-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);