Commit f8b20525 authored by James Morris's avatar James Morris

[CRYPTO]: More bug fixes and cleanups.

- added back USAGI copyright for HMAC (lost earlier during some
refactoring).
- bugfix: make sure tfm pointer is set to NULL during post allocation
failure path in crypto_alloc_tfm()
parent eadec301
......@@ -122,6 +122,7 @@ struct crypto_tfm *crypto_alloc_tfm(u32 id)
kfree(tfm->crt_ctx);
out_free_tfm:
kfree(tfm);
tfm = NULL;
out_put:
crypto_alg_put(alg);
out:
......
......@@ -5,6 +5,9 @@
*
* Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
*
* The HMAC implementation is derived from USAGI.
* Copyright (c) 2002 USAGI/WIDE Project
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment