Reviewed-by: Gao Xiang <[email protected]>
Signed-off-by: Chao Yu <[email protected]>
---
 fs/erofs/super.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/erofs/super.c b/fs/erofs/super.c
index 0db207056bc5..e6d4efd7c043 100644
--- a/fs/erofs/super.c
+++ b/fs/erofs/super.c
@@ -189,8 +189,8 @@ static int erofs_read_super(struct super_block *sb,
                infoln("root inode @ nid %llu", ROOT_NID(sbi));
 #ifdef CONFIG_EROFS_FS_PAGE_BUNDLE
        sbi->ibundle = erofs_init_page_bundle(sb);
-       if (sbi->ibundle == NULL) {
-               err = -ENOMEM;
+       if (IS_ERR(sbi->ibundle)) {
+               err = PTR_ERR(sbi->ibundle);
                goto err_sbi;
        }
 #endif
-- 
2.18.0.rc1

-- 
Linux-erofs mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linux-erofs

Reply via email to