diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2022-11-13 12:24:09 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-11-16 08:36:34 +0100 |
commit | f6b182fbd5c608bd6cbaaaee35b1325443f48043 (patch) | |
tree | bce4070e60b31b0417f7ed532109e9ff2342581b /drivers/nvme | |
parent | nvme-auth: don't re-authenticate if the controller is not LIVE (diff) | |
download | linux-f6b182fbd5c608bd6cbaaaee35b1325443f48043.tar.xz linux-f6b182fbd5c608bd6cbaaaee35b1325443f48043.zip |
nvme-auth: remove redundant buffer deallocations
host_response, host_key, ctrl_key and sess_key are
freed in nvme_auth_reset_dhchap which is called from
nvme_auth_free_dhchap.
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/auth.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/nvme/host/auth.c b/drivers/nvme/host/auth.c index 4f2c8d0567bd..0d0542e33484 100644 --- a/drivers/nvme/host/auth.c +++ b/drivers/nvme/host/auth.c @@ -683,10 +683,6 @@ static void nvme_auth_free_dhchap(struct nvme_dhchap_queue_context *chap) crypto_free_shash(chap->shash_tfm); if (chap->dh_tfm) crypto_free_kpp(chap->dh_tfm); - kfree_sensitive(chap->ctrl_key); - kfree_sensitive(chap->host_key); - kfree_sensitive(chap->sess_key); - kfree_sensitive(chap->host_response); kfree(chap->buf); kfree(chap); } |