summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qedi/qedi_iscsi.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-04-12 10:48:29 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2019-04-18 20:32:26 -0400
commit65b1dc99008de592f7c1c8e5fad446824791b4da (patch)
tree766f782a7a226c3aa515a27c8830b87db50b769f /drivers/scsi/qedi/qedi_iscsi.c
parent948e922fc44611ee2de0c89583ca958cb5307d36 (diff)
downloadlinux-65b1dc99008de592f7c1c8e5fad446824791b4da.tar.bz2
scsi: qedf: remove memset/memcpy to nfunc and use func instead
Currently the qedf_dbg_* family of functions can overrun the end of the source string if it is less than the destination buffer length because of the use of a fixed sized memcpy. Remove the memset/memcpy calls to nfunc and just use func instead as it is always a null terminated string. Addresses-Coverity: ("Out-of-bounds access") Fixes: 61d8658b4a43 ("scsi: qedf: Add QLogic FastLinQ offload FCoE driver framework.") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Saurav Kashyap <skashyap@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qedi/qedi_iscsi.c')
0 files changed, 0 insertions, 0 deletions