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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index 555d594d1811..054a88dcc7a1 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -650,7 +650,7 @@ static void detach_mtd_dev(struct ubi_device *ubi)
650 uif_close(ubi); 650 uif_close(ubi);
651 ubi_eba_close(ubi); 651 ubi_eba_close(ubi);
652 ubi_wl_close(ubi); 652 ubi_wl_close(ubi);
653 kfree(ubi->vtbl); 653 vfree(ubi->vtbl);
654 put_mtd_device(ubi->mtd); 654 put_mtd_device(ubi->mtd);
655 kfree(ubi_devices[ubi_num]); 655 kfree(ubi_devices[ubi_num]);
656 ubi_devices[ubi_num] = NULL; 656 ubi_devices[ubi_num] = NULL;