nbd: put socket in error cases
authorJosef Bacik <josef@toxicpanda.com>
Thu, 6 Apr 2017 21:01:56 +0000 (17:01 -0400)
committerJens Axboe <axboe@fb.com>
Mon, 17 Apr 2017 15:58:42 +0000 (09:58 -0600)
commit9b1355d5e3f094ef671033f38c4357cd1455c571
tree738f0b07a052441761b4ed4e37c761c4dd58da6f
parent1c6286f26301ad154a1c10fb6e68925493dd28ba
nbd: put socket in error cases

When adding a new socket we look it up and then try to add it to our
configuration.  If any of those steps fail we need to make sure we put
the socket so we don't leak them.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nbd.c