diff options
-rw-r--r-- | drivers/mtd/ubi/build.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 6d0d48395d8c..6c3fb5ab20f5 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c | |||
@@ -1019,6 +1019,8 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset) | |||
1019 | out_debugfs: | 1019 | out_debugfs: |
1020 | ubi_debugfs_exit_dev(ubi); | 1020 | ubi_debugfs_exit_dev(ubi); |
1021 | out_uif: | 1021 | out_uif: |
1022 | get_device(&ubi->dev); | ||
1023 | ubi_assert(ref); | ||
1022 | uif_close(ubi); | 1024 | uif_close(ubi); |
1023 | out_detach: | 1025 | out_detach: |
1024 | ubi_wl_close(ubi); | 1026 | ubi_wl_close(ubi); |