diff options
| author | 2018-02-07 08:12:35 -0800 | |
|---|---|---|
| committer | 2018-02-13 21:35:39 -0500 | |
| commit | 1683ce57f568c7c92d53e9234624a53554a29cd5 (patch) | |
| tree | 1010454f842fd744423801b10697d4b867f7e88d /fs/xfs/xfs_trans_buf.c | |
| parent | scsi: qla2xxx: Fix incorrect handle for abort IOCB (diff) | |
| download | wireguard-linux-1683ce57f568c7c92d53e9234624a53554a29cd5.tar.xz wireguard-linux-1683ce57f568c7c92d53e9234624a53554a29cd5.zip | |
scsi: qedi: Fix truncation of CHAP name and secret
The data in NVRAM is not guaranteed to be NUL terminated. Since
snprintf expects byte-stream to accommodate null byte, the CHAP secret
is truncated. Use sprintf instead of snprintf to fix the truncation of
CHAP name and secret.
Signed-off-by: Andrew Vasquez <andrew.vasquez@cavium.com>
Signed-off-by: Nilesh Javali <nilesh.javali@cavium.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Acked-by: Chris Leech <cleech@redhat.com>
Acked-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_trans_buf.c')
0 files changed, 0 insertions, 0 deletions
