diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-04-12 11:48:29 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-04-19 02:32:26 +0200 |
commit | 65b1dc99008de592f7c1c8e5fad446824791b4da (patch) | |
tree | 766f782a7a226c3aa515a27c8830b87db50b769f /Documentation/security | |
parent | scsi: core: map PQ=1, PDT=other values to SCSI_SCAN_TARGET_PRESENT (diff) | |
download | linux-65b1dc99008de592f7c1c8e5fad446824791b4da.tar.xz linux-65b1dc99008de592f7c1c8e5fad446824791b4da.zip |
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 'Documentation/security')
0 files changed, 0 insertions, 0 deletions