Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1322983 > unrolled thread

RE: [PATCH v6 01/15] scsi: ufs: clear UTRD, UPIU req and rsp before new transfers

Started byygardi@codeaurora.org
First post2016-02-01 11:50 +0100
Last post2016-02-01 11:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  RE: [PATCH v6 01/15] scsi: ufs: clear UTRD, UPIU req and rsp before  new transfers ygardi@codeaurora.org - 2016-02-01 11:50 +0100

#1322983 — RE: [PATCH v6 01/15] scsi: ufs: clear UTRD, UPIU req and rsp before new transfers

Fromygardi@codeaurora.org
Date2016-02-01 11:50 +0100
SubjectRE: [PATCH v6 01/15] scsi: ufs: clear UTRD, UPIU req and rsp before new transfers
Message-ID<qXkdr-1hA-1@gated-at.bofh.it>
>
>
>> +	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);
>

i agree. will be modified in V7
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web