nvme-auth: add flag for bi-directional auth
authorMark O'Donovan <shiftee@posteo.net>
Wed, 25 Oct 2023 10:51:24 +0000 (10:51 +0000)
committerKeith Busch <kbusch@kernel.org>
Mon, 6 Nov 2023 16:34:17 +0000 (08:34 -0800)
commitfc1e03eacac8e5ff8664ce2ebadabba8604f09f4
treee60060144734ccce68c17918e3bdf6df555ed0cf
parent75276847f4e262a52ccaf1a1c6b929280ddf77f6
nvme-auth: add flag for bi-directional auth

Introduces an explicit variable for bi-directional auth.
The currently used variable chap->s2 is incorrectly zeroed for
uni-directional auth. That will be fixed in the next patch so this
needs to change to avoid sending unexpected success2 messages

Signed-off-by: Mark O'Donovan <shiftee@posteo.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
drivers/nvme/host/auth.c