mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-30 19:15:14 +00:00
Merge git://git.infradead.org/~dwmw2/mtd-2.6.26
* git://git.infradead.org/~dwmw2/mtd-2.6.26: [MTD] m25p80.c mutex unlock fix
This commit is contained in:
commit
c8d10bffdb
1 changed files with 3 additions and 1 deletions
|
@ -346,8 +346,10 @@ static int m25p80_write(struct mtd_info *mtd, loff_t to, size_t len,
|
|||
mutex_lock(&flash->lock);
|
||||
|
||||
/* Wait until finished previous write command. */
|
||||
if (wait_till_ready(flash))
|
||||
if (wait_till_ready(flash)) {
|
||||
mutex_unlock(&flash->lock);
|
||||
return 1;
|
||||
}
|
||||
|
||||
write_enable(flash);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue