commit | 5829cc8da94f500b0c1fe82688d89fd36a1a9a41 | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Sun Nov 05 18:30:47 2017 -0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Nov 10 19:20:20 2017 +0800 |
tree | 570141e078eadcbf1f8548314388afdb9f5baf2d | |
parent | ccd9888f14a8019c0bbdeeae758aba1f58693712 [diff] |
crypto: qat - Clean up error handling in qat_dh_set_secret() Update the error handling in qat_dh_set_secret() to mirror dh_set_secret(). The new version is less error-prone because freeing memory and setting the pointers to NULL is now only done in one place. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>