projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2536194
)
scsi: qedi: Correct max length of CHAP secret
author
Nilesh Javali
<njavali@marvell.com>
Thu, 17 Dec 2020 10:51:44 +0000
(
02:51
-0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 27 Jan 2021 10:54:58 +0000
(11:54 +0100)
[ Upstream commit
d50c7986fbf0e2167279e110a2ed5bd8e811c660
]
The CHAP secret displayed garbage characters causing iSCSI login
authentication failure. Correct the CHAP password max length.
Link:
https://lore.kernel.org/r/20201217105144.8055-1-njavali@marvell.com
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/qedi/qedi_main.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/qedi/qedi_main.c
b/drivers/scsi/qedi/qedi_main.c
index f5fc7f518f8afea5e05504400450422b0905bc42..47ad64b06623696ca510da02ffafa0d0149256ce 100644
(file)
--- a/
drivers/scsi/qedi/qedi_main.c
+++ b/
drivers/scsi/qedi/qedi_main.c
@@
-2245,7
+2245,7
@@
qedi_show_boot_tgt_info(struct qedi_ctx *qedi, int type,
chap_name);
break;
case ISCSI_BOOT_TGT_CHAP_SECRET:
- rc = sprintf(buf, "%.*s\n", NVM_ISCSI_CFG_CHAP_
NAME
_MAX_LEN,
+ rc = sprintf(buf, "%.*s\n", NVM_ISCSI_CFG_CHAP_
PWD
_MAX_LEN,
chap_secret);
break;
case ISCSI_BOOT_TGT_REV_CHAP_NAME:
@@
-2253,7
+2253,7
@@
qedi_show_boot_tgt_info(struct qedi_ctx *qedi, int type,
mchap_name);
break;
case ISCSI_BOOT_TGT_REV_CHAP_SECRET:
- rc = sprintf(buf, "%.*s\n", NVM_ISCSI_CFG_CHAP_
NAME
_MAX_LEN,
+ rc = sprintf(buf, "%.*s\n", NVM_ISCSI_CFG_CHAP_
PWD
_MAX_LEN,
mchap_secret);
break;
case ISCSI_BOOT_TGT_FLAGS: