diff --git a/fs/squashfs/squashfs.c b/fs/squashfs/squashfs.c index c4d0bac..4f4a307 100644 --- a/fs/squashfs/squashfs.c +++ b/fs/squashfs/squashfs.c @@ -120,6 +120,9 @@ struct mtd_info *mtd; char *str; + if (!IS_ENABLED(CONFIG_MTD_UBI)) + return; + ubi_vol = ubi_open_volume_cdev(fsdev->cdev, UBI_READONLY); if (IS_ERR(ubi_vol))