Commit 668cee82 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Greg Kroah-Hartman

bsg-lib: don't free job in bsg_prepare_job

commit f507b54d upstream.

The job structure is allocated as part of the request, so we should not
free it in the error path of bsg_prepare_job.
Signed-off-by: default avatarChristoph Hellwig <>
Reviewed-by: default avatarMing Lei <>
Signed-off-by: default avatarJens Axboe <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 9d74367d
......@@ -147,7 +147,6 @@ static int bsg_create_job(struct device *dev, struct request *req)
return -ENOMEM;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment