swim3: add real error handling in setup
authorOmar Sandoval <osandov@fb.com>
Thu, 11 Oct 2018 19:20:43 +0000 (12:20 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 16 Oct 2018 15:49:26 +0000 (09:49 -0600)
commitdbaa54b65e7a06e6ff2192f8fe92ecd51accc766
tree7497a8d07bbeac095cffcfcba481dd55ed2a67a2
parente3896d77b7025c39150eb5ada33ec2c88f4ad445
swim3: add real error handling in setup

The driver doesn't have support for removing a device that has already
been configured, but with more careful ordering we can avoid the need
for that and make sure that we don't leak generic resources.

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