projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'for-linus-20140905' of git://git.infradead.org/linux-mtd
[cascardo/linux.git]
/
drivers
/
mtd
/
ubi
/
vtbl.c
diff --git
a/drivers/mtd/ubi/vtbl.c
b/drivers/mtd/ubi/vtbl.c
index
d77b1c1
..
07cac5f
100644
(file)
--- a/
drivers/mtd/ubi/vtbl.c
+++ b/
drivers/mtd/ubi/vtbl.c
@@
-591,7
+591,7
@@
static int init_volumes(struct ubi_device *ubi,
/* Static volumes only */
av = ubi_find_av(ai, i);
- if (!av) {
+ if (!av
|| !av->leb_count
) {
/*
* No eraseblocks belonging to this volume found. We
* don't actually know whether this static volume is