md: Skip cluster setup in case of error while reading bitmap
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Wed, 22 Jul 2015 17:09:16 +0000 (12:09 -0500)
committerNeilBrown <neilb@suse.com>
Fri, 24 Jul 2015 03:37:48 +0000 (13:37 +1000)
commitf7357273198adc86fe11c2a7be8a0816f44103bb
tree639ac99fb76688765b4eb5e8003b688525ac3e20
parent34cab6f42003cb06f48f86a86652984dec338ae9
md: Skip cluster setup in case of error while reading bitmap

If the bitmap read fails, the error code set is -EINVAL. However,
we don't check for errors and go ahead with cluster_setup.
Skip the cluster setup in case of error.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/bitmap.c