linux/drivers/scsi/fnic
Arnd Bergmann 514e59c119 scsi: fnic: fix format string overflow warning
The MSI interrupt name can require 11 bytes in addition to the device name,
for a total of 23 bytes:

drivers/scsi/fnic/fnic_isr.c: In function 'fnic_request_intr':
drivers/scsi/fnic/fnic_isr.c:192:4: error: '-fcs-rq' directive writing 7 bytes into a region of size between 5 and 16 [-Werror=format-overflow=]
    "%.11s-fcs-rq", fnic->name);
drivers/scsi/fnic/fnic_isr.c:206:3: note: 'sprintf' output between 12 and 23 bytes into a destination of size 16
   sprintf(fnic->msix[FNIC_MSIX_ERR_NOTIFY].devname,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    "%.11s-err-notify", fnic->name);

This extends the buffer to fit any possible value.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-08-07 14:04:01 -04:00
..
cq_desc.h
cq_enet_desc.h
cq_exch_desc.h
fcpio.h
fnic.h scsi: fnic: fix format string overflow warning 2017-08-07 14:04:01 -04:00
fnic_attrs.c
fnic_debugfs.c
fnic_fcs.c SCSI misc on 20170704 2017-07-06 12:10:33 -07:00
fnic_fip.h
fnic_io.h scsi: fnic: correct speed display and add support for 25,40 and 100G 2017-06-27 21:40:59 -04:00
fnic_isr.c
fnic_main.c scsi: fnic: correct speed display and add support for 25,40 and 100G 2017-06-27 21:40:59 -04:00
fnic_res.c
fnic_res.h
fnic_scsi.c scsi: fnic: changing queue command to return result DID_IMM_RETRY when rport is init 2017-06-27 21:40:59 -04:00
fnic_stats.h
fnic_trace.c
fnic_trace.h
Makefile
rq_enet_desc.h
vnic_cq.c
vnic_cq.h
vnic_cq_copy.h
vnic_dev.c
vnic_dev.h
vnic_devcmd.h
vnic_intr.c
vnic_intr.h
vnic_nic.h
vnic_resource.h
vnic_rq.c
vnic_rq.h
vnic_scsi.h
vnic_stats.h
vnic_wq.c
vnic_wq.h
vnic_wq_copy.c
vnic_wq_copy.h
wq_enet_desc.h