]> git.baikalelectronics.ru Git - kernel.git/commit
drbd: fix error return code in drbd_init()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 25 Jun 2013 14:50:04 +0000 (16:50 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Jun 2013 14:04:36 +0000 (16:04 +0200)
commitdc407deaa1edb264a0aee7d35beee6a26aca1dcd
tree46701e054133568085ba4d8b2518dbac4a0b9247
parent7cf9f10f89420359e4737ac3ccb5257bd9d5a02d
drbd: fix error return code in drbd_init()

Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_main.c