bsg-lib: don't free job in bsg_prepare_job
authorChristoph Hellwig <hch@lst.de>
Thu, 7 Sep 2017 11:54:35 +0000 (13:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Oct 2017 07:41:46 +0000 (09:41 +0200)
commit668cee82cd28d2c38a99f7cbddf3b3fd58f257b9
tree6d510b2ed599e4f54bf1023416ac6aaa626bc4d2
parent9d74367d1a35e87f46e5e0c2e8dd9f5d21f701b0
bsg-lib: don't free job in bsg_prepare_job

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.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/bsg-lib.c