Skip to content

Commit d76584e

Browse files
igawkeithbusch
authored andcommitted
nvmet-passthru: propagate status from id override functions
The id override functions return a status which is not propagated to the caller. Fixes: c1fef73 ("nvmet: add passthru code to process commands") Signed-off-by: Daniel Wagner <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent e5d574a commit d76584e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/nvme/target/passthru.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,13 @@ static void nvmet_passthru_execute_cmd_work(struct work_struct *w)
226226
req->cmd->common.opcode == nvme_admin_identify) {
227227
switch (req->cmd->identify.cns) {
228228
case NVME_ID_CNS_CTRL:
229-
nvmet_passthru_override_id_ctrl(req);
229+
status = nvmet_passthru_override_id_ctrl(req);
230230
break;
231231
case NVME_ID_CNS_NS:
232-
nvmet_passthru_override_id_ns(req);
232+
status = nvmet_passthru_override_id_ns(req);
233233
break;
234234
case NVME_ID_CNS_NS_DESC_LIST:
235-
nvmet_passthru_override_id_descs(req);
235+
status = nvmet_passthru_override_id_descs(req);
236236
break;
237237
}
238238
} else if (status < 0)

0 commit comments

Comments
 (0)