diff options
author | Eric Biggers <ebiggers@google.com> | 2017-11-06 05:30:47 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-11-10 14:20:20 +0300 |
commit | 5829cc8da94f500b0c1fe82688d89fd36a1a9a41 (patch) | |
tree | 570141e078eadcbf1f8548314388afdb9f5baf2d /crypto/dh.c | |
parent | ccd9888f14a8019c0bbdeeae758aba1f58693712 (diff) | |
download | linux-5829cc8da94f500b0c1fe82688d89fd36a1a9a41.tar.xz |
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>
Diffstat (limited to 'crypto/dh.c')
0 files changed, 0 insertions, 0 deletions