aboutsummaryrefslogtreecommitdiffstats
path: root/include/crypto/internal/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/crypto/internal/hash.h')
-rw-r--r--include/crypto/internal/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crypto/internal/hash.h b/include/crypto/internal/hash.h
index 069b93e1a8ec..2d1b10f23c91 100644
--- a/include/crypto/internal/hash.h
+++ b/include/crypto/internal/hash.h
@@ -135,7 +135,7 @@ static inline void *crypto_shash_ctx_aligned(struct crypto_shash *tfm)
135 135
136static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm) 136static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm)
137{ 137{
138 return (struct crypto_shash *)tfm; 138 return container_of(tfm, struct crypto_shash, base);
139} 139}
140 140
141#endif /* _CRYPTO_INTERNAL_HASH_H */ 141#endif /* _CRYPTO_INTERNAL_HASH_H */