diff options
author | Omar Sandoval <osandov@fb.com> | 2018-10-11 12:20:49 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-13 11:08:20 -0800 |
commit | 8e00f4525729f11c22591104030da188bb3fe4b0 (patch) | |
tree | 2caa33b3b6de891a1ee777428aca42a92ea5e607 /drivers/block/cryptoloop.c | |
parent | 703acc3265c392b6e390f8e045a8c492c3ae6968 (diff) | |
download | talos-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