Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs

Pull cramfs fix from Al Viro:
 "Regression fix, fallen through the cracks"

* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
  cramfs: fix usage on non-MTD device
This commit is contained in:
Linus Torvalds 2019-11-24 12:36:39 -08:00
commit b8387f6f34
1 changed files with 2 additions and 2 deletions

View File

@ -958,8 +958,8 @@ static int cramfs_get_tree(struct fs_context *fc)
if (IS_ENABLED(CONFIG_CRAMFS_MTD)) { if (IS_ENABLED(CONFIG_CRAMFS_MTD)) {
ret = get_tree_mtd(fc, cramfs_mtd_fill_super); ret = get_tree_mtd(fc, cramfs_mtd_fill_super);
if (ret < 0) if (!ret)
return ret; return 0;
} }
if (IS_ENABLED(CONFIG_CRAMFS_BLOCKDEV)) if (IS_ENABLED(CONFIG_CRAMFS_BLOCKDEV))
ret = get_tree_bdev(fc, cramfs_blkdev_fill_super); ret = get_tree_bdev(fc, cramfs_blkdev_fill_super);