git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: sctp: fix memory leak in auth key management
[pandora-kernel.git]
/
net
/
sctp
/
auth.c
diff --git
a/net/sctp/auth.c
b/net/sctp/auth.c
index
bf81204
..
53d455c
100644
(file)
--- a/
net/sctp/auth.c
+++ b/
net/sctp/auth.c
@@
-71,7
+71,7
@@
void sctp_auth_key_put(struct sctp_auth_bytes *key)
return;
if (atomic_dec_and_test(&key->refcnt)) {
- kfree(key);
+ k
z
free(key);
SCTP_DBG_OBJCNT_DEC(keys);
}
}
@@
-866,8
+866,6
@@
int sctp_auth_set_key(struct sctp_endpoint *ep,
list_add(&cur_key->key_list, sh_keys);
cur_key->key = key;
- sctp_auth_key_hold(key);
-
return 0;
nomem:
if (!replace)