aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/build.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi/build.c')
-rw-r--r--drivers/mtd/ubi/build.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index b85ca186afc6..5d00364d4a4a 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -249,7 +249,7 @@ static void kill_volumes(struct ubi_device *ubi)
249 249
250 for (i = 0; i < ubi->vtbl_slots; i++) 250 for (i = 0; i < ubi->vtbl_slots; i++)
251 if (ubi->volumes[i]) 251 if (ubi->volumes[i])
252 ubi_free_volume(ubi, i); 252 ubi_free_volume(ubi, ubi->volumes[i]);
253} 253}
254 254
255/** 255/**
@@ -300,7 +300,7 @@ static int uif_init(struct ubi_device *ubi)
300 300
301 for (i = 0; i < ubi->vtbl_slots; i++) 301 for (i = 0; i < ubi->vtbl_slots; i++)
302 if (ubi->volumes[i]) { 302 if (ubi->volumes[i]) {
303 err = ubi_add_volume(ubi, i); 303 err = ubi_add_volume(ubi, ubi->volumes[i]);
304 if (err) { 304 if (err) {
305 ubi_err("cannot add volume %d", i); 305 ubi_err("cannot add volume %d", i);
306 goto out_volumes; 306 goto out_volumes;