|
@@ -63,7 +63,7 @@ void sctp_auth_key_put(struct sctp_auth_bytes *key)
|
|
if (!key)
|
|
if (!key)
|
|
return;
|
|
return;
|
|
|
|
|
|
- if (atomic_dec_and_test(&key->refcnt)) {
|
|
|
|
|
|
+ if (refcount_dec_and_test(&key->refcnt)) {
|
|
kzfree(key);
|
|
kzfree(key);
|
|
SCTP_DBG_OBJCNT_DEC(keys);
|
|
SCTP_DBG_OBJCNT_DEC(keys);
|
|
}
|
|
}
|
|
@@ -84,7 +84,7 @@ static struct sctp_auth_bytes *sctp_auth_create_key(__u32 key_len, gfp_t gfp)
|
|
return NULL;
|
|
return NULL;
|
|
|
|
|
|
key->len = key_len;
|
|
key->len = key_len;
|
|
- atomic_set(&key->refcnt, 1);
|
|
|
|
|
|
+ refcount_set(&key->refcnt, 1);
|
|
SCTP_DBG_OBJCNT_INC(keys);
|
|
SCTP_DBG_OBJCNT_INC(keys);
|
|
|
|
|
|
return key;
|
|
return key;
|