]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-auth: uninitialized variable in nvme_auth_transform_key()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 18 Jul 2022 11:10:45 +0000 (14:10 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:22:48 +0000 (17:22 -0600)
commit0273d09b2dfe00d3d7e3cb5b84acab76c272982c
tree007354addcbc048cc00d3ded369e0fe3b513d8e1
parent5e6df765863a8cdafb2bef274c66a9da5abc5447
nvme-auth: uninitialized variable in nvme_auth_transform_key()

A couple of the early error gotos call kfree_sensitive(transformed_key);
before "transformed_key" has been initialized.

Fixes: ae0f7c067e31 ("nvmet: implement basic In-Band Authentication")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/common/auth.c