mtd/chips: add missing set_current_state() to cfi_{amdstd,staa}_sync()
Changes
2 files changed · +2 −0
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| drivers/mtd/chips/cfi_cmdset_0002.c | modified | +1 | −0 | View file |
| drivers/mtd/chips/cfi_cmdset_0020.c | modified | +1 | −0 | View file |
drivers/mtd/chips/cfi_cmdset_0002.c
View filediff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c
index d072e87..458d477 100644
--- a/drivers/mtd/chips/cfi_cmdset_0002.c
+++ b/drivers/mtd/chips/cfi_cmdset_0002.c
@@ -1763,6 +1763,7 @@ static void cfi_amdstd_sync (struct mtd_info *mtd)
default:
/* Not an idle state */
+ set_current_state(TASK_UNINTERRUPTIBLE);
add_wait_queue(&chip->wq, &wait);
spin_unlock(chip->mutex);
drivers/mtd/chips/cfi_cmdset_0020.c
View filediff --git a/drivers/mtd/chips/cfi_cmdset_0020.c b/drivers/mtd/chips/cfi_cmdset_0020.c
index b344ff8..492e2ab 100644
--- a/drivers/mtd/chips/cfi_cmdset_0020.c
+++ b/drivers/mtd/chips/cfi_cmdset_0020.c
@@ -1015,6 +1015,7 @@ static void cfi_staa_sync (struct mtd_info *mtd)
default:
/* Not an idle state */
+ set_current_state(TASK_UNINTERRUPTIBLE);
add_wait_queue(&chip->wq, &wait);
spin_unlock_bh(chip->mutex);