git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
UBI: Fix livelock in produce_free_peb()
[sfrench/cifs-2.6.git]
/
drivers
/
mtd
/
ubi
/
wl.c
diff --git
a/drivers/mtd/ubi/wl.c
b/drivers/mtd/ubi/wl.c
index 20f4917131450f844332183756a25bce6f28d9a9..32b3c1486a05960a66f542d8ab3ecc24b6a9cf66 100644
(file)
--- a/
drivers/mtd/ubi/wl.c
+++ b/
drivers/mtd/ubi/wl.c
@@
-272,7
+272,7
@@
static int produce_free_peb(struct ubi_device *ubi)
{
int err;
- while (!ubi->free.rb_node) {
+ while (!ubi->free.rb_node
&& ubi->works_count
) {
spin_unlock(&ubi->wl_lock);
dbg_wl("do one work synchronously");