X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Ffreevxfs%2Fvxfs_lookup.c;h=aee049cb9f84782640d365a90156f423d2a37b46;hb=ef77ad5e67447b3744574c29b97da6677d6d3f18;hp=bf86e5444ea6d705a99682b83987b586a40a1e04;hpb=5a84d159061d914c8dd4aa372ac6e9529c2be453;p=karo-tx-linux.git diff --git a/fs/freevxfs/vxfs_lookup.c b/fs/freevxfs/vxfs_lookup.c index bf86e5444ea6..aee049cb9f84 100644 --- a/fs/freevxfs/vxfs_lookup.c +++ b/fs/freevxfs/vxfs_lookup.c @@ -213,10 +213,10 @@ vxfs_lookup(struct inode *dip, struct dentry *dp, struct nameidata *nd) lock_kernel(); ino = vxfs_inode_by_name(dip, dp); if (ino) { - ip = iget(dip->i_sb, ino); - if (!ip) { + ip = vxfs_iget(dip->i_sb, ino); + if (IS_ERR(ip)) { unlock_kernel(); - return ERR_PTR(-EACCES); + return ERR_CAST(ip); } } unlock_kernel();