[PATCH v2 07/20] nvme-auth: don't override ctrl keys before validation

Chaitanya Kulkarni chaitanyak at nvidia.com
Mon Nov 14 19:58:05 PST 2022


On 11/13/22 03:24, Sagi Grimberg wrote:
> Replace ctrl ctrl_key/host_key only after nvme_auth_generate_key is successful.
> Also, this fixes a bug where the keys are leaked.
> 
> Reviewed-by: Hannes Reinecke <hare at suse.de>
> Signed-off-by: Sagi Grimberg <sagi at grimberg.me>

Looks good.

Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>

-ck



More information about the Linux-nvme mailing list