diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2018-07-26 14:10:37 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-07-30 22:30:32 -0400 |
commit | 15d258674b5c91b9c1ae11264624d5c0d0675e8f (patch) | |
tree | 90714990e11e5dee7a12fd254ad01430649af2f2 /arch/c6x | |
parent | 5e53be8e476a3397ed5383c23376f299555a2b43 (diff) | |
download | talos-op-linux-15d258674b5c91b9c1ae11264624d5c0d0675e8f.tar.gz talos-op-linux-15d258674b5c91b9c1ae11264624d5c0d0675e8f.zip |
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 'arch/c6x')
0 files changed, 0 insertions, 0 deletions