nvmet-auth: add missing goto in nvmet_setup_auth()
authorHannes Reinecke <hare@suse.de>
Wed, 24 Aug 2022 07:23:16 +0000 (09:23 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 31 Aug 2022 04:57:59 +0000 (07:57 +0300)
commitda0342a3aa0357795224e6283df86444e1117168
tree9239e963ecf14fd10f0df4a8c554902ea551e316
parent200dccd07df21b504a2168960059f0a971bf415d
nvmet-auth: add missing goto in nvmet_setup_auth()

There's a goto missing in nvmet_setup_auth(), causing a kernel oops
when nvme_auth_extract_key() fails.

Reported-by: Tal Lossos <tallossos@gmail.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/auth.c