scsi: Correct allocation of block-device name
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:47:43 +0000 (10:47 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:40 +0000 (18:11 -0500)
commitca93d281717acb121960b50e6e9d7eebab3d950d
tree1e112c23b31392915f16f01dc183aeb52a31dc99
parentf0e358f07d75579b40eff8f723b280ab5d53d338
scsi: Correct allocation of block-device name

This should be allocated so that it does not go out of scope. Fix this and
set the log category while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/scsi/scsi.c