diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 9ea711430466..859ddaab5e02 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -392,8 +392,8 @@ setup_root: | |||
392 | location.offset = 0; | 392 | location.offset = 0; |
393 | 393 | ||
394 | inode = btrfs_iget(sb, &location, new_root, &new); | 394 | inode = btrfs_iget(sb, &location, new_root, &new); |
395 | if (!inode) | 395 | if (IS_ERR(inode)) |
396 | return ERR_PTR(-ENOMEM); | 396 | return ERR_CAST(inode); |
397 | 397 | ||
398 | /* | 398 | /* |
399 | * If we're just mounting the root most subvol put the inode and return | 399 | * If we're just mounting the root most subvol put the inode and return |