summaryrefslogtreecommitdiff
path: root/crypto/drbg.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2017-10-12 16:35:36 +0200
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2017-10-12 16:35:36 +0200
commit1ca96e9695b6c448befcd0abacaf473458f22d1c (patch)
tree9ba289bdd8831b061743a8d48b13e6128306b8f1 /crypto/drbg.c
parentaa0bfc9cee13677f110cfb870f7b5d9cd60cf5a7 (diff)
parent508f8d23a372beae647185ce896a0c1109406b83 (diff)
downloadlinux-crypto-1ca96e9695b6c448befcd0abacaf473458f22d1c.tar.gz
linux-crypto-1ca96e9695b6c448befcd0abacaf473458f22d1c.zip
Merge tag 'v4.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into fbdev-for-next
Linux 4.14-rc4
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;