summaryrefslogtreecommitdiff
path: root/drivers/scsi/BusLogic.h
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2018-07-26 14:10:37 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2018-07-30 22:30:32 -0400
commit15d258674b5c91b9c1ae11264624d5c0d0675e8f (patch)
tree90714990e11e5dee7a12fd254ad01430649af2f2 /drivers/scsi/BusLogic.h
parent5e53be8e476a3397ed5383c23376f299555a2b43 (diff)
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>
Diffstat (limited to 'drivers/scsi/BusLogic.h')
0 files changed, 0 insertions, 0 deletions