Patchwork [19/22] UBI: Fastmap: Init fm_sem

login
register
mail settings
Submitter Richard Weinberger
Date June 18, 2012, 4:19 p.m.
Message ID <1340036345-96726-20-git-send-email-richard@nod.at>
Download mbox | patch
Permalink /patch/165519/
State New
Headers show

Comments

Richard Weinberger - June 18, 2012, 4:19 p.m.
...forgot to stage this change.

Signed-off-by: Richard Weinberger <richard@nod.at>
---
 drivers/mtd/ubi/build.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index 0ad6789..1ad128d 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -908,6 +908,7 @@  int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset)
 	mutex_init(&ubi->device_mutex);
 	mutex_init(&ubi->fm_pool_mutex);
 	mutex_init(&ubi->fm_mutex);
+	init_rwsem(&ubi->fm_sem);
 	spin_lock_init(&ubi->volumes_lock);
 
 	ubi_msg("attaching mtd%d to ubi%d", mtd->index, ubi_num);