summaryrefslogtreecommitdiff
path: root/crypto/drbg.c
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2017-09-25 11:15:38 -0400
committerDoug Ledford <dledford@redhat.com>2017-09-25 11:16:58 -0400
commite83c465ae14844b2dfff55178b82eeaccbef0b24 (patch)
tree9ba289bdd8831b061743a8d48b13e6128306b8f1 /crypto/drbg.c
parentf960b5ebd9ed09bc12e10c712bce82ab58ef0435 (diff)
parent508f8d23a372beae647185ce896a0c1109406b83 (diff)
downloadlinux-crypto-e83c465ae14844b2dfff55178b82eeaccbef0b24.tar.gz
linux-crypto-e83c465ae14844b2dfff55178b82eeaccbef0b24.zip
Merge tag 'v4.14-rc2' into k.o/for-next
Merge my for-next branch to Linux 4.14-rc2 and open up the for-next area for 4.15 kernel development. Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'crypto/drbg.c')
-rw-r--r--crypto/drbg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/drbg.c b/crypto/drbg.c
index 633a88e9..70018397 100644
--- a/crypto/drbg.c
+++ b/crypto/drbg.c
@@ -1133,10 +1133,10 @@ static inline void drbg_dealloc_state(struct drbg_state *drbg)
{
if (!drbg)
return;
- kzfree(drbg->V);
- drbg->Vbuf = NULL;
- kzfree(drbg->C);
- drbg->Cbuf = NULL;
+ kzfree(drbg->Vbuf);
+ drbg->V = NULL;
+ kzfree(drbg->Cbuf);
+ drbg->C = NULL;
kzfree(drbg->scratchpadbuf);
drbg->scratchpadbuf = NULL;
drbg->reseed_ctr = 0;