aboutsummaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_highspeed.c
diff options
context:
space:
mode:
authorArnd Bergmann2017-07-14 14:06:58 +0200
committerMartin K. Petersen2017-08-07 14:04:01 -0400
commit514e59c1195f2634dab025d952242f5e69e052c7 (patch)
tree9d19d825219e5788195ac1b37033ba664bd296be /net/ipv4/tcp_highspeed.c
parent0606ffe26d6d7478fb5957cbc8b9cbbf14a7c68c (diff)
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>
Diffstat (limited to 'net/ipv4/tcp_highspeed.c')
0 files changed, 0 insertions, 0 deletions