diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2023-08-02 11:14:27 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-08-11 13:19:27 +0200 |
commit | dd8e82f4fa9f0ef18e4409a817609f794ea2d468 (patch) | |
tree | 9150fc97221001ae70a1f8a8d5f1ff2d0fb58eaa /drivers/crypto | |
parent | crypto: af_alg - Decrement struct key.usage in alg_set_by_key_serial() (diff) | |
download | linux-dd8e82f4fa9f0ef18e4409a817609f794ea2d468.tar.xz linux-dd8e82f4fa9f0ef18e4409a817609f794ea2d468.zip |
crypto: qat - use kfree_sensitive instead of memset/kfree()
Use kfree_sensitive() instead of memset() and kfree().
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Acked-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/intel/qat/qat_common/qat_compression.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/intel/qat/qat_common/qat_compression.c b/drivers/crypto/intel/qat/qat_common/qat_compression.c index 3f1f35283266..7842a9f22178 100644 --- a/drivers/crypto/intel/qat/qat_common/qat_compression.c +++ b/drivers/crypto/intel/qat/qat_common/qat_compression.c @@ -234,8 +234,7 @@ static void qat_free_dc_data(struct adf_accel_dev *accel_dev) dma_unmap_single(dev, dc_data->ovf_buff_p, dc_data->ovf_buff_sz, DMA_FROM_DEVICE); - memset(dc_data->ovf_buff, 0, dc_data->ovf_buff_sz); - kfree(dc_data->ovf_buff); + kfree_sensitive(dc_data->ovf_buff); devm_kfree(dev, dc_data); accel_dev->dc_data = NULL; } |