forked from Minki/linux
1683ce57f5
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
qedi_dbg.c | ||
qedi_dbg.h | ||
qedi_debugfs.c | ||
qedi_fw_api.c | ||
qedi_fw_iscsi.h | ||
qedi_fw_scsi.h | ||
qedi_fw.c | ||
qedi_gbl.h | ||
qedi_hsi.h | ||
qedi_iscsi.c | ||
qedi_iscsi.h | ||
qedi_main.c | ||
qedi_nvm_iscsi_cfg.h | ||
qedi_sysfs.c | ||
qedi_version.h | ||
qedi.h |