linux/drivers/scsi/qedi
Bart Van Assche 15d258674b scsi: qedi: Fix a potential buffer overflow
Tell snprintf() to store at most 255 characters in the output buffer
instead of 256. This patch avoids that smatch reports the following
warning:

drivers/scsi/qedi/qedi_main.c:891: qedi_get_boot_tgt_info() error: snprintf() is printing too much 256 vs 255

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: <QLogic-Storage-Upstream@cavium.com>
Cc: <stable@vger.kernel.org>
Acked-by: Nilesh Javali <nilesh.javali@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-07-30 22:30:32 -04: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 scsi: qedi: fix build regression 2018-02-27 21:19:13 -05:00
qedi_debugfs.c scsi: qedi: fix building with LTO 2018-02-13 21:37:00 -05:00
qedi_fw_api.c qed*: Utilize FW 8.33.1.0 2018-01-02 13:59:16 -05:00
qedi_fw_iscsi.h qed*: HSI renaming for different types of HW 2018-01-02 13:59:15 -05:00
qedi_fw_scsi.h qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
qedi_fw.c Merge branch 'fixes' into misc 2018-04-03 17:38:39 -07:00
qedi_gbl.h scsi: qedi: fix building with LTO 2018-02-13 21:37:00 -05:00
qedi_hsi.h
qedi_iscsi.c qed*: Utilize FW 8.37.2.0 2018-06-05 10:48:09 -04:00
qedi_iscsi.h qedi: Add support for populating ethernet TLVs. 2018-05-22 23:29:54 -04:00
qedi_main.c scsi: qedi: Fix a potential buffer overflow 2018-07-30 22:30:32 -04: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*: Advance drivers' version to 8.33.0.20 2018-01-02 13:59:16 -05:00
qedi.h qedi: Add support for populating ethernet TLVs. 2018-05-22 23:29:54 -04:00