nvme-fc: fix module_init (theoretical) error path
authorSagi Grimberg <sagi@grimberg.me>
Sun, 19 Mar 2017 12:16:05 +0000 (14:16 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 4 Apr 2017 15:48:23 +0000 (09:48 -0600)
commitc0e4a6f5941ec3759fd5c7e58fc5e8b135cfee72
treef24ea7e8ed9bb7ca01da61c6d09e57d97e42bbe7
parentd19eef029dad7600b69968036e877cdcf51e860d
nvme-fc: fix module_init (theoretical) error path

If nvmf_register_transport happened to fail
(it can't, but theoretically) we leak memory.

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