]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfbc8ea654487740f06cbc287a5118dac28adb469
tree639ac99fb76688765b4eb5e8003b688525ac3e20
parent5a8e88e134d65ceb669f04e2b7df79a94f4e724a
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