File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,6 @@ static void nvmet_passthru_execute_cmd(struct nvmet_req *req)
238238
239239 rq = nvme_alloc_request (q , req -> cmd , BLK_MQ_REQ_NOWAIT , NVME_QID_ANY );
240240 if (IS_ERR (rq )) {
241- rq = NULL ;
242241 status = NVME_SC_INTERNAL ;
243242 goto out_put_ns ;
244243 }
@@ -247,7 +246,7 @@ static void nvmet_passthru_execute_cmd(struct nvmet_req *req)
247246 ret = nvmet_passthru_map_sg (req , rq );
248247 if (unlikely (ret )) {
249248 status = NVME_SC_INTERNAL ;
250- goto out_put_ns ;
249+ goto out_put_req ;
251250 }
252251 }
253252
@@ -274,12 +273,13 @@ static void nvmet_passthru_execute_cmd(struct nvmet_req *req)
274273
275274 return ;
276275
276+ out_put_req :
277+ blk_put_request (rq );
277278out_put_ns :
278279 if (ns )
279280 nvme_put_ns (ns );
280281out :
281282 nvmet_req_complete (req , status );
282- blk_put_request (rq );
283283}
284284
285285/*
You can’t perform that action at this time.
0 commit comments