nvme-loop: fix module_init (theoretical) error path
authorSagi Grimberg <sagi@grimberg.me>
Sun, 19 Mar 2017 04:26:28 +0000 (06:26 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 4 Apr 2017 15:48:23 +0000 (09:48 -0600)
commitd19eef029dad7600b69968036e877cdcf51e860d
treed84264dfeadb46e21bcbc267e0c897a0ee8bcfb3
parenta56c79cfd3e97706ad5615831c3bab01fb4047c4
nvme-loop: fix module_init (theoretical) error path

if nvmf_register_transport happend to fail, we
need to nvmet_unregister_transport as well.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/target/loop.c