aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/ubi/cdev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c
index 7646220ca6e2..20aeb277d8d4 100644
--- a/drivers/mtd/ubi/cdev.c
+++ b/drivers/mtd/ubi/cdev.c
@@ -425,8 +425,10 @@ static long vol_cdev_ioctl(struct file *file, unsigned int cmd,
425 break; 425 break;
426 426
427 err = ubi_start_update(ubi, vol, bytes); 427 err = ubi_start_update(ubi, vol, bytes);
428 if (bytes == 0) 428 if (bytes == 0) {
429 ubi_volume_notify(ubi, vol, UBI_VOLUME_UPDATED);
429 revoke_exclusive(desc, UBI_READWRITE); 430 revoke_exclusive(desc, UBI_READWRITE);
431 }
430 break; 432 break;
431 } 433 }
432 434