]> asedeno.scripts.mit.edu Git - linux.git/commit
swim: fix cleanup on setup error
authorOmar Sandoval <osandov@fb.com>
Thu, 11 Oct 2018 19:20:41 +0000 (12:20 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 16 Oct 2018 15:49:08 +0000 (09:49 -0600)
commit1448a2a5360ae06f25e2edc61ae070dff5c0beb4
tree880b3eeb679e9b96cd52c52c677a258a224ef16d
parent891b7c5fbf619d2a314e424775b3c232eb227e90
swim: fix cleanup on setup error

If we fail to allocate the request queue for a disk, we still need to
free that disk, not just the previous ones. Additionally, we need to
cleanup the previous request queues.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/swim.c