[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5B8DA87D05A7694D9FA63FD143655C1B41E4C272@hasmsx108.ger.corp.intel.com>
Date: Mon, 2 Nov 2015 19:33:01 +0000
From: "Winkler, Tomas" <tomas.winkler@...el.com>
To: Yaniv Gardi <ygardi@...eaurora.org>,
"robherring2@...il.com" <robherring2@...il.com>,
"James.Bottomley@...senPartnership.com"
<James.Bottomley@...senPartnership.com>,
"pebolle@...cali.nl" <pebolle@...cali.nl>,
"hch@...radead.org" <hch@...radead.org>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>,
"linux-arm-msm@...r.kernel.org" <linux-arm-msm@...r.kernel.org>,
"santoshsy@...il.com" <santoshsy@...il.com>,
"linux-scsi-owner@...r.kernel.org" <linux-scsi-owner@...r.kernel.org>,
"subhashj@...eaurora.org" <subhashj@...eaurora.org>,
"gbroner@...eaurora.org" <gbroner@...eaurora.org>,
"draviv@...eaurora.org" <draviv@...eaurora.org>,
Maya Erez <merez@...eaurora.org>,
Vinayak Holikatti <vinholikatti@...il.com>,
"James E.J. Bottomley" <JBottomley@...n.com>
Subject: RE: [PATCH v6 01/15] scsi: ufs: clear UTRD, UPIU req and rsp before
new transfers
> + cdb_len = min_t(unsigned short, lrbp->cmd->cmd_len, MAX_CDB_SIZE);
> + memcpy(ucd_req_ptr->sc.cdb, lrbp->cmd->cmnd, cdb_len);
> + if (cdb_len < MAX_CDB_SIZE)
> + memset(ucd_req_ptr->sc.cdb + cdb_len, 0,
> + (MAX_CDB_SIZE - cdb_len));
It's just 16 bytes, setting all to zero prior to copy will be as good as this if statement
memset(ucd_req_ptr->sc.cdb, 0, MAX_CDB_SIZE);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists