mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
md/raid10: use correct limit variable
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. Cc: [email protected] Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: NeilBrown <[email protected]>
This commit is contained in:
parent
48c26ddc9f
commit
91502f099d
1 changed files with 1 additions and 1 deletions
|
|
@ -3218,7 +3218,7 @@ static sector_t sync_request(struct mddev *mddev, sector_t sector_nr,
|
|||
else {
|
||||
bad_sectors -= (sector - first_bad);
|
||||
if (max_sync > bad_sectors)
|
||||
max_sync = max_sync;
|
||||
max_sync = bad_sectors;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue