From 20315aa4fae1340e5d4b1faae15b90ee34b9ea50 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Sat, 20 Nov 2021 17:13:42 +0000 Subject: sg_z_act_query: new utility for sending either a Zone activate or Zone query command; sg_rep_zones: add Report zone starting LBA granularity field in REPORT ZONES response [zbc2r12]; sg_decode_sense: add --nodecode option; initialize all sense buffers to 0; rework main README file git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@923 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- src/sg_dd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/sg_dd.c') diff --git a/src/sg_dd.c b/src/sg_dd.c index 75430dda..2fa37500 100644 --- a/src/sg_dd.c +++ b/src/sg_dd.c @@ -24,7 +24,7 @@ * command. The actual size of the SCSI READ or WRITE command block can be * selected with the "cdbsz" argument. * - * This version is designed for the linux kernel 2, 3, 4 and 5 series. + * This version is designed for the Linux kernel 2, 3, 4 and 5 series. */ #define _XOPEN_SOURCE 600 @@ -70,7 +70,7 @@ #include "sg_unaligned.h" #include "sg_pr2serr.h" -static const char * version_str = "6.31 20211115"; +static const char * version_str = "6.31 20211114"; #define ME "sg_dd: " @@ -715,7 +715,7 @@ sg_read_low(int sg_fd, uint8_t * buff, int blocks, int64_t from_block, int res, slen; const uint8_t * sbp; uint8_t rdCmd[MAX_SCSI_CDBSZ]; - uint8_t senseBuff[SENSE_BUFF_LEN]; + uint8_t senseBuff[SENSE_BUFF_LEN] = {0}; struct sg_io_hdr io_hdr; if (sg_build_scsi_cdb(rdCmd, ifp->cdbsz, blocks, from_block, do_verify, @@ -1124,7 +1124,7 @@ sg_write(int sg_fd, uint8_t * buff, int blocks, int64_t to_block, uint64_t io_addr = 0; const char * op_str = do_verify ? "verifying" : "writing"; uint8_t wrCmd[MAX_SCSI_CDBSZ]; - uint8_t senseBuff[SENSE_BUFF_LEN]; + uint8_t senseBuff[SENSE_BUFF_LEN] = {0}; struct sg_io_hdr io_hdr; if (sg_build_scsi_cdb(wrCmd, ofp->cdbsz, blocks, to_block, do_verify, -- cgit v1.2.3