Commit c8d10bff authored by Linus Torvalds's avatar Linus Torvalds
parents eb4e545d bc018863
...@@ -346,8 +346,10 @@ static int m25p80_write(struct mtd_info *mtd, loff_t to, size_t len, ...@@ -346,8 +346,10 @@ static int m25p80_write(struct mtd_info *mtd, loff_t to, size_t len,
mutex_lock(&flash->lock); mutex_lock(&flash->lock);
/* Wait until finished previous write command. */ /* Wait until finished previous write command. */
if (wait_till_ready(flash)) if (wait_till_ready(flash)) {
mutex_unlock(&flash->lock);
return 1; return 1;
}
write_enable(flash); write_enable(flash);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment