Signed-off-by: Mark Fasheh <mfas...@suse.de>
---
 fs/openpromfs/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/openpromfs/inode.c b/fs/openpromfs/inode.c
index 2200662a9bf1..d1c59e6252c5 100644
--- a/fs/openpromfs/inode.c
+++ b/fs/openpromfs/inode.c
@@ -229,7 +229,7 @@ static struct dentry *openpromfs_lookup(struct inode *dir, 
struct dentry *dentry
        return ERR_PTR(-ENOENT);
 
 found:
-       inode = openprom_iget(dir->i_sb, ino);
+       inode = openprom_iget(inode_sb(dir), ino);
        mutex_unlock(&op_mutex);
        if (IS_ERR(inode))
                return ERR_CAST(inode);
-- 
2.15.1

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to