diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cred.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/cred.h b/include/linux/cred.h index 4221ec6..166ce4d 100644 --- a/include/linux/cred.h +++ b/include/linux/cred.h @@ -147,8 +147,9 @@ static inline struct cred *get_cred(struct cred *cred) * Release a reference to a set of credentials, deleting them when the last ref * is released. */ -static inline void put_cred(struct cred *cred) +static inline void put_cred(const struct cred *_cred) { + struct cred *cred = (struct cred *) _cred; if (atomic_dec_and_test(&(cred)->usage)) __put_cred(cred); } |