linux_dsm_epyc7002/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_attrs.c
fnic_debugfs.c scsi: fnic: added timestamp reporting in fnic debug stats 2017-06-27 21:40:59 -04:00
fnic_fcs.c SCSI misc on 20170704 2017-07-06 12:10:33 -07:00
fnic_fip.h fc_fip: Update to latest FC-BB-6 draft 2016-07-13 22:04:27 -04:00
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 scsi: fnic: switch to pci_alloc_irq_vectors 2017-03-23 09:51:10 -04:00
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 scsi: fnic: added timestamp reporting in fnic debug stats 2017-06-27 21:40:59 -04:00
fnic_trace.c scsi: fnic: added timestamp reporting in fnic debug stats 2017-06-27 21:40:59 -04:00
fnic_trace.h scsi: fnic: Use time64_t to represent trace timestamps 2016-11-08 17:29:46 -05:00
fnic.h scsi: fnic: fix format string overflow warning 2017-08-07 14:04:01 -04:00
Makefile
rq_enet_desc.h
vnic_cq_copy.h
vnic_cq.c
vnic_cq.h
vnic_dev.c scsi: fnic: use kernel's '%pM' format option to print MAC 2016-11-08 17:29:57 -05:00
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_copy.c
vnic_wq_copy.h
vnic_wq.c
vnic_wq.h
wq_enet_desc.h