]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6b13be6b72ee673d45ba53e313e8c36503ecdca6
tree738f0b07a052441761b4ed4e37c761c4dd58da6f
parentc3777f88c1b84adae55ae206e3f16851b6201bb2
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