aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/chips/cfi_cmdset_0001.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c
index 7ea49a0d5ec3..296159ec5189 100644
--- a/drivers/mtd/chips/cfi_cmdset_0001.c
+++ b/drivers/mtd/chips/cfi_cmdset_0001.c
@@ -1087,7 +1087,7 @@ static int inval_cache_and_wait_for_operation(
1087 } 1087 }
1088 spin_lock(chip->mutex); 1088 spin_lock(chip->mutex);
1089 1089
1090 if (chip->state != chip_state) { 1090 while (chip->state != chip_state) {
1091 /* Someone's suspended the operation: sleep */ 1091 /* Someone's suspended the operation: sleep */
1092 DECLARE_WAITQUEUE(wait, current); 1092 DECLARE_WAITQUEUE(wait, current);
1093 set_current_state(TASK_UNINTERRUPTIBLE); 1093 set_current_state(TASK_UNINTERRUPTIBLE);