]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - include/crypto/aead.h
crypto: api - check for ERR pointers in crypto_destroy_tfm()
[mirror_ubuntu-jammy-kernel.git] / include / crypto / aead.h
index fcc12c593ef8b4a59ca9e20e6e88588e84a62bc2..e728469c4cccb3aa56835b042ee83373377acf24 100644 (file)
@@ -185,6 +185,8 @@ static inline struct crypto_tfm *crypto_aead_tfm(struct crypto_aead *tfm)
 /**
  * crypto_free_aead() - zeroize and free aead handle
  * @tfm: cipher handle to be freed
+ *
+ * If @tfm is a NULL or error pointer, this function does nothing.
  */
 static inline void crypto_free_aead(struct crypto_aead *tfm)
 {