Files
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
..
2017-10-19 12:46:43 +01:00
2017-03-13 15:33:09 -07:00
2018-02-27 21:19:13 -05:00
2018-01-02 13:59:16 -05:00
2017-03-13 15:33:09 -07:00
2018-04-03 17:38:39 -07:00
2018-02-13 21:37:00 -05:00
2018-06-05 10:48:09 -04:00