]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md-cluster: fix error return code in join()
authorWei Yongjun <weiyongjun1@huawei.com>
Sun, 21 Aug 2016 14:42:25 +0000 (14:42 +0000)
committerShaohua Li <shli@fb.com>
Wed, 24 Aug 2016 17:21:51 +0000 (10:21 -0700)
commit0f6187dbe542d71ace8ba0908954b0f4f8a30a1e
treea9e84cc8f54f63bd10c34450d375b83cbd227c0e
parent486b0f7bcd64be027535811ef44195bc1027fbd3
md-cluster: fix error return code in join()

Fix to return error code -ENOMEM from the lockres_init() error
handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md-cluster.c