nbd: fix setting of 'error' in NBD_DO_IT ioctl
authorJens Axboe <axboe@fb.com>
Wed, 23 Nov 2016 02:09:45 +0000 (19:09 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 23 Nov 2016 02:09:45 +0000 (19:09 -0700)
commitfeffa5cc7b47f38210d4997ceb3fe30881d6c337
treed8c5028be43032e8dc15ff75ec72e0cd36576cdf
parent63db89eaf0b9bf856c5e079ed5eab5c3f13165c8
nbd: fix setting of 'error' in NBD_DO_IT ioctl

Multiple paths don't set it properly, ensure that we do.

Fixes: 9561a7ade0c2 ("nbd: add multi-connection support")
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nbd.c