CRED: Use RCU to access another task's creds and to release a task's own creds
[deliverable/linux.git] / include / linux / cred.h
index 4221ec6000c1bd4183f2e6706ca4dd5224afeca1..166ce4ddba64d3843376e0e5b75456a820ede760 100644 (file)
@@ -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);
 }
This page took 0.076255 seconds and 5 git commands to generate.