Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165457
b: refs/heads/master
c: 2eaaa5f
h: refs/heads/master
i:
  165455: a3b6d1b
v: v3
  • Loading branch information
Jiri Slaby authored and David Woodhouse committed Sep 19, 2009
1 parent 82c438a commit ca04371
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ec77e21b91f0393a5201cfd4571a82ab7d64fd29
refs/heads/master: 2eaaa5ff87c675aacd3a869fc5fe75a35bbd5278
4 changes: 3 additions & 1 deletion trunk/drivers/mtd/devices/sst25l.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,10 @@ static int sst25l_erase(struct mtd_info *mtd, struct erase_info *instr)
mutex_lock(&flash->lock);

err = sst25l_wait_till_ready(flash);
if (err)
if (err) {
mutex_unlock(&flash->lock);
return err;
}

while (addr < end) {
err = sst25l_erase_sector(flash, addr);
Expand Down

0 comments on commit ca04371

Please sign in to comment.