Patch "bsg-lib: don't free job in bsg_prepare_job" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
bsg-lib: don't free job in bsg_prepare_job
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
bsg-lib-don-t-free-job-in-bsg_prepare_job.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
f507b54dccfd8000c517d740bc45f20c74532d18Mon Sep 17 00:00:00 2001
From: Christoph Hellwig <[email protected]>
Date: Thu, 7 Sep 2017 13:54:35 +0200
Subject: bsg-lib: don't free job in bsg_prepare_job
From: Christoph Hellwig <[email protected]>
commit f507b54dccfd8000c517d740bc45f20c74532d18 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.
--- block/bsg-lib.c | 1 - 1 file changed, 1 deletion(-)
block/bsg-lib.c +0 -1
@@ -147,7 +147,6 @@ static int bsg_create_job(struct device failjob_rls_rqst_payload:kfree (job->request_payload.sg_list); failjob_rls_job: -kfree (job);return -ENOMEM ; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/bsg-lib-don-t-free-job-in-bsg_prepare_job.patch