X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=net%2Fsctp%2Fauth.c;h=53d455c09ce5ca6411abb657762e8d1efe161c0c;hp=bf812048cf6f7a244c547e0cd31a731351abfab3;hb=3af10169145c8eed7b3591c0644da4298405efbc;hpb=8def5f51b012efb00e77ba2d04696cc0aadd0609 diff --git a/net/sctp/auth.c b/net/sctp/auth.c index bf812048cf6f..53d455c09ce5 100644 --- 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); + kzfree(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)