File tree 1 file changed +3
-3
lines changed
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)
238
238
239
239
rq = nvme_alloc_request (q , req -> cmd , BLK_MQ_REQ_NOWAIT , NVME_QID_ANY );
240
240
if (IS_ERR (rq )) {
241
- rq = NULL ;
242
241
status = NVME_SC_INTERNAL ;
243
242
goto out_put_ns ;
244
243
}
@@ -247,7 +246,7 @@ static void nvmet_passthru_execute_cmd(struct nvmet_req *req)
247
246
ret = nvmet_passthru_map_sg (req , rq );
248
247
if (unlikely (ret )) {
249
248
status = NVME_SC_INTERNAL ;
250
- goto out_put_ns ;
249
+ goto out_put_req ;
251
250
}
252
251
}
253
252
@@ -274,12 +273,13 @@ static void nvmet_passthru_execute_cmd(struct nvmet_req *req)
274
273
275
274
return ;
276
275
276
+ out_put_req :
277
+ blk_put_request (rq );
277
278
out_put_ns :
278
279
if (ns )
279
280
nvme_put_ns (ns );
280
281
out :
281
282
nvmet_req_complete (req , status );
282
- blk_put_request (rq );
283
283
}
284
284
285
285
/*
You can’t perform that action at this time.
0 commit comments