linux/drivers/scsi/qedi
Andrew Vasquez 1683ce57f5 scsi: qedi: Fix truncation of CHAP name and secret
The data in NVRAM is not guaranteed to be NUL terminated.  Since
snprintf expects byte-stream to accommodate null byte, the CHAP secret
is truncated.  Use sprintf instead of snprintf to fix the truncation of
CHAP name and secret.

Signed-off-by: Andrew Vasquez <andrew.vasquez@cavium.com>
Signed-off-by: Nilesh Javali <nilesh.javali@cavium.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Acked-by: Chris Leech <cleech@redhat.com>
Acked-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-02-13 21:35:39 -05:00
..
Kconfig qed: Fix iWARP out of order flow 2017-10-19 12:46:43 +01:00
Makefile qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
qedi_dbg.c scsi: qedi: return via va_end to match corresponding va_start 2017-01-05 00:31:13 -05:00
qedi_dbg.h
qedi_debugfs.c SCSI misc on 20170503 2017-05-04 12:19:44 -07:00
qedi_fw_api.c qed: Utilize FW 8.20.0.0 2017-05-18 13:21:40 -04:00
qedi_fw_iscsi.h qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
qedi_fw_scsi.h qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
qedi_fw.c scsi: qedi: Fix a possible sleep-in-atomic bug in qedi_process_tmf_resp 2017-12-20 21:11:51 -05:00
qedi_gbl.h scsi: qedi: fix build error without DEBUG_FS 2017-03-06 22:22:16 -05:00
qedi_hsi.h
qedi_iscsi.c scsi: qedi: Limit number for CQ queues. 2017-08-24 22:28:50 -04:00
qedi_iscsi.h qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
qedi_main.c scsi: qedi: Fix truncation of CHAP name and secret 2018-02-13 21:35:39 -05:00
qedi_nvm_iscsi_cfg.h scsi: qedi: Add support for Boot from SAN over iSCSI offload 2017-07-12 16:52:27 -04:00
qedi_sysfs.c
qedi_version.h qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
qedi.h scsi: qedi: Limit number for CQ queues. 2017-08-24 22:28:50 -04:00