]> err.no Git - linux-2.6/blobdiff - crypto/hmac.c
[PATCH] vt: fix possible memory corruption in complement_pos
[linux-2.6] / crypto / hmac.c
index 847df9263e163fe08ae3dfec3115203dbe1884e3..da0456b37109513b472f29241a26addd69bdedbb 100644 (file)
@@ -49,8 +49,7 @@ int crypto_alloc_hmac_block(struct crypto_tfm *tfm)
 
 void crypto_free_hmac_block(struct crypto_tfm *tfm)
 {
-       if (tfm->crt_digest.dit_hmac_block)
-               kfree(tfm->crt_digest.dit_hmac_block);
+       kfree(tfm->crt_digest.dit_hmac_block);
 }
 
 void crypto_hmac_init(struct crypto_tfm *tfm, u8 *key, unsigned int *keylen)