* [PATCH] target: Add blk_put_request()
@ 2012-08-10 8:04 Marina Makienko
2012-08-10 14:02 ` Marina Makienko
0 siblings, 1 reply; 2+ messages in thread
From: Marina Makienko @ 2012-08-10 8:04 UTC (permalink / raw)
To: Nicholas A. Bellinger
Cc: Marina Makienko, linux-scsi, target-devel, linux-kernel, ldv-project
blk requests are obtained (some memory is allocated for them)
by means of functions blk_get_request and blk_make_request.
After usage (usually with help of blk_execute_rq) these requests
should be put (and freed) with help of blk_put_request.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Marina Makienko <makienko@ispras.ru>
---
drivers/target/target_core_pscsi.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/target/target_core_pscsi.c b/drivers/target/target_core_pscsi.c
index 6e32ff6..c048ede 100644
--- a/drivers/target/target_core_pscsi.c
+++ b/drivers/target/target_core_pscsi.c
@@ -1161,6 +1161,7 @@ static int pscsi_execute_cmd(struct se_cmd *cmd)
blk_execute_rq_nowait(pdv->pdv_sd->request_queue, NULL, req,
(cmd->sam_task_attr == MSG_HEAD_TAG),
pscsi_req_done);
+ blk_put_request(req);
return 0;
--
1.7.7
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] target: Add blk_put_request()
2012-08-10 8:04 [PATCH] target: Add blk_put_request() Marina Makienko
@ 2012-08-10 14:02 ` Marina Makienko
0 siblings, 0 replies; 2+ messages in thread
From: Marina Makienko @ 2012-08-10 14:02 UTC (permalink / raw)
To: Nicholas A. Bellinger
Cc: Marina Makienko, linux-scsi, target-devel, linux-kernel, ldv-project
blk requests are obtained (some memory is allocated for them)
by means of functions blk_get_request and blk_make_request.
After usage (usually with help of blk_execute_rq) these requests
should be put (and freed) with help of blk_put_request.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Marina Makienko <makienko@ispras.ru>
---
There is no problems in drivers/target/target_core_pscsi.c
Please ignore the previous message.
--
1.7.7
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-10 14:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-10 8:04 [PATCH] target: Add blk_put_request() Marina Makienko
2012-08-10 14:02 ` Marina Makienko
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.