diff options
Diffstat (limited to 'drivers/mtd/ubi/wl.c')
-rw-r--r-- | drivers/mtd/ubi/wl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c index 42c684cf3688..277c429a138f 100644 --- a/drivers/mtd/ubi/wl.c +++ b/drivers/mtd/ubi/wl.c | |||
@@ -795,7 +795,10 @@ static int wear_leveling_worker(struct ubi_device *ubi, struct ubi_work *wrk, | |||
795 | protect = 1; | 795 | protect = 1; |
796 | goto out_not_moved; | 796 | goto out_not_moved; |
797 | } | 797 | } |
798 | 798 | if (err == MOVE_RETRY) { | |
799 | scrubbing = 1; | ||
800 | goto out_not_moved; | ||
801 | } | ||
799 | if (err == MOVE_CANCEL_BITFLIPS || err == MOVE_TARGET_WR_ERR || | 802 | if (err == MOVE_CANCEL_BITFLIPS || err == MOVE_TARGET_WR_ERR || |
800 | err == MOVE_TARGET_RD_ERR) { | 803 | err == MOVE_TARGET_RD_ERR) { |
801 | /* | 804 | /* |