projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6847e15
)
UBI: gluebi: initialize ubi_num field
author
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Fri, 10 Jul 2009 13:59:36 +0000
(16:59 +0300)
committer
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Wed, 15 Jul 2009 08:30:55 +0000
(11:30 +0300)
Do not forget to initialize 'gluebi->ubi_num' because otherwise
it will stay 0 even for ubi1 device, and gluebi will open
wrong UBI device when 'gluebi_get_device()' is called.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/gluebi.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/ubi/gluebi.c
b/drivers/mtd/ubi/gluebi.c
index 95aaac03f9389a8727b3ed65f91124dc592c15dc..b5e478fa26612b188aa664541503457b2e58d2af 100644
(file)
--- a/
drivers/mtd/ubi/gluebi.c
+++ b/
drivers/mtd/ubi/gluebi.c
@@
-332,6
+332,7
@@
static int gluebi_create(struct ubi_device_info *di,
}
gluebi->vol_id = vi->vol_id;
+ gluebi->ubi_num = vi->ubi_num;
mtd->type = MTD_UBIVOLUME;
if (!di->ro_mode)
mtd->flags = MTD_WRITEABLE;