]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 12 Oct 2017 21:20:34 +0000 (16:20 -0500)
commit933d1b650c9150af9d8d62ed8c9efd599ae89834
tree4fc1aa1e8907d44ed7c3ef024e568e5a61fd98b9
parent8597f1e6730296df68b6cf5687d75d77f25dcd1e
bsg-lib: don't free job in bsg_prepare_job

BugLink: http://bugs.launchpad.net/bugs/1721777
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>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
block/bsg-lib.c