diff options
Diffstat (limited to 'fs/logfs')
-rw-r--r-- | fs/logfs/dev_mtd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/logfs/dev_mtd.c b/fs/logfs/dev_mtd.c index cafb6ef2e05b..b02a4020241a 100644 --- a/fs/logfs/dev_mtd.c +++ b/fs/logfs/dev_mtd.c | |||
@@ -250,5 +250,7 @@ int logfs_get_sb_mtd(struct file_system_type *type, int flags, | |||
250 | const struct logfs_device_ops *devops = &mtd_devops; | 250 | const struct logfs_device_ops *devops = &mtd_devops; |
251 | 251 | ||
252 | mtd = get_mtd_device(NULL, mtdnr); | 252 | mtd = get_mtd_device(NULL, mtdnr); |
253 | if (IS_ERR(mtd)) | ||
254 | return PTR_ERR(mtd); | ||
253 | return logfs_get_sb_device(type, flags, mtd, NULL, devops, mnt); | 255 | return logfs_get_sb_device(type, flags, mtd, NULL, devops, mnt); |
254 | } | 256 | } |