aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/cdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi/cdev.c')
-rw-r--r--drivers/mtd/ubi/cdev.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c
index 98cf31ed0814..055e3f563c13 100644
--- a/drivers/mtd/ubi/cdev.c
+++ b/drivers/mtd/ubi/cdev.c
@@ -518,6 +518,20 @@ static int vol_cdev_ioctl(struct inode *inode, struct file *file,
518 err = ubi_wl_flush(ubi); 518 err = ubi_wl_flush(ubi);
519 break; 519 break;
520 } 520 }
521
522 /* Logical eraseblock map command */
523 case UBI_IOCEBMAP:
524 {
525 struct ubi_map_req req;
526
527 err = copy_from_user(&req, argp, sizeof(struct ubi_map_req));
528 if (err) {
529 err = -EFAULT;
530 break;
531 }
532 err = ubi_leb_map(desc, req.lnum, req.dtype);
533 break;
534 }
521#endif 535#endif
522 536
523 default: 537 default: