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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index 70c0b9a9e6e3..6ac133994f94 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -703,6 +703,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset)
703 goto out_free; 703 goto out_free;
704 704
705 mutex_init(&ubi->buf_mutex); 705 mutex_init(&ubi->buf_mutex);
706 mutex_init(&ubi->ckvol_mutex);
706 ubi->peb_buf1 = vmalloc(ubi->peb_size); 707 ubi->peb_buf1 = vmalloc(ubi->peb_size);
707 if (!ubi->peb_buf1) 708 if (!ubi->peb_buf1)
708 goto out_free; 709 goto out_free;