X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=fs%2Fsysv%2Fnamei.c;h=a1f1ef33e81c4c5584a86630ca1bca637b078fea;hb=48b32a3553a54740d236b79a90f20147a25875e3;hp=4e48abbd2b5de63ff1e93f7c5599a9b917f18e43;hpb=58a3bb59973e33a428d72fa530a3d1d81feb0e8f;p=linux-2.6-omap-h63xx.git diff --git a/fs/sysv/namei.c b/fs/sysv/namei.c index 4e48abbd2b5..a1f1ef33e81 100644 --- a/fs/sysv/namei.c +++ b/fs/sysv/namei.c @@ -13,7 +13,6 @@ */ #include -#include #include "sysv.h" static int add_nondir(struct dentry *dentry, struct inode *inode) @@ -54,9 +53,9 @@ static struct dentry *sysv_lookup(struct inode * dir, struct dentry * dentry, st ino = sysv_inode_by_name(dentry); if (ino) { - inode = iget(dir->i_sb, ino); - if (!inode) - return ERR_PTR(-EACCES); + inode = sysv_iget(dir->i_sb, ino); + if (IS_ERR(inode)) + return ERR_CAST(inode); } d_add(dentry, inode); return NULL;