Thread (45 messages) 45 messages, 4 authors, 2020-02-21

Re: [PATCH v6 6/9] scsi: ufs: Add inline encryption support to UFS

From: Eric Biggers <ebiggers@kernel.org>
Date: 2020-02-05 20:47:15
Also in: linux-f2fs-devel, linux-fscrypt, linux-fsdevel, linux-scsi

On Wed, Dec 18, 2019 at 06:51:33AM -0800, Satya Tangirala wrote:
quoted hunk ↗ jump to hunk
@@ -2472,6 +2492,13 @@ static int ufshcd_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd)
 	lrbp->task_tag = tag;
 	lrbp->lun = ufshcd_scsi_to_upiu_lun(cmd->device->lun);
 	lrbp->intr_cmd = !ufshcd_is_intr_aggr_allowed(hba) ? true : false;
+
+	err = ufshcd_prepare_lrbp_crypto(hba, cmd, lrbp);
+	if (err) {
+		lrbp->cmd = NULL;
+		clear_bit_unlock(tag, &hba->lrb_in_use);
+		goto out;
+	}
The error path here is missing a call to ufshcd_release().

- Eric
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help