diff options
-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 4fa999696310..b3c76e815d66 100644 --- a/include/linux/cred.h +++ b/include/linux/cred.h | |||
@@ -186,7 +186,8 @@ static inline struct cred *get_new_cred(struct cred *cred) | |||
186 | */ | 186 | */ |
187 | static inline const struct cred *get_cred(const struct cred *cred) | 187 | static inline const struct cred *get_cred(const struct cred *cred) |
188 | { | 188 | { |
189 | return get_new_cred((struct cred *) cred); | 189 | struct cred *nonconst_cred = (struct cred *) cred; |
190 | return get_new_cred(nonconst_cred); | ||
190 | } | 191 | } |
191 | 192 | ||
192 | /** | 193 | /** |