md/raid10: use correct limit variable
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 11 Oct 2012 03:20:58 +0000 (14:20 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Oct 2012 16:27:59 +0000 (09:27 -0700)
commit9b38cc4a70f2c83857fd37707570a18c1027effe
treea9841de8c174c5c0e37522ceba2ce9ad59170396
parenta0fee8de3ae5784d4308b7bd18c303a4144ece18
md/raid10: use correct limit variable

commit 91502f099dfc5a1e8812898e26ee280713e1d002 upstream.

Clang complains that we are assigning a variable to itself.  This should
be using bad_sectors like the similar earlier check does.

Bug has been present since 3.1-rc1.  It is minor but could
conceivably cause corruption or other bad behaviour.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/raid10.c