summaryrefslogtreecommitdiffstats
path: root/drivers/block/cryptoloop.c
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2018-10-11 12:20:49 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-13 11:08:20 -0800
commit8e00f4525729f11c22591104030da188bb3fe4b0 (patch)
tree2caa33b3b6de891a1ee777428aca42a92ea5e607 /drivers/block/cryptoloop.c
parent703acc3265c392b6e390f8e045a8c492c3ae6968 (diff)
downloadtalos-obmc-linux-8e00f4525729f11c22591104030da188bb3fe4b0.tar.gz
talos-obmc-linux-8e00f4525729f11c22591104030da188bb3fe4b0.zip
ataflop: fix error handling during setup
[ Upstream commit 71327f547ee3a46ec5c39fdbbd268401b2578d0e ] Move queue allocation next to disk allocation to fix a couple of issues: - If add_disk() hasn't been called, we should clear disk->queue before calling put_disk(). - If we fail to allocate a request queue, we still need to put all of the disks, not just the ones that we allocated queues for. Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/block/cryptoloop.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud