diff options
Diffstat (limited to 'drivers/md/dm-crypt.c')
-rw-r--r-- | drivers/md/dm-crypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index fc93b9330af4..08981be7baa1 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c | |||
@@ -705,7 +705,7 @@ static int crypt_iv_tcw_whitening(struct crypt_config *cc, | |||
705 | for (i = 0; i < ((1 << SECTOR_SHIFT) / 8); i++) | 705 | for (i = 0; i < ((1 << SECTOR_SHIFT) / 8); i++) |
706 | crypto_xor(data + i * 8, buf, 8); | 706 | crypto_xor(data + i * 8, buf, 8); |
707 | out: | 707 | out: |
708 | memset(buf, 0, sizeof(buf)); | 708 | memzero_explicit(buf, sizeof(buf)); |
709 | return r; | 709 | return r; |
710 | } | 710 | } |
711 | 711 | ||