diff options
Diffstat (limited to 'fs/ufs/namei.c')
-rw-r--r-- | fs/ufs/namei.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ufs/namei.c b/fs/ufs/namei.c index d8bfbee2fe2b..747a4de6c695 100644 --- a/fs/ufs/namei.c +++ b/fs/ufs/namei.c | |||
@@ -57,10 +57,10 @@ static struct dentry *ufs_lookup(struct inode * dir, struct dentry *dentry, stru | |||
57 | lock_kernel(); | 57 | lock_kernel(); |
58 | ino = ufs_inode_by_name(dir, dentry); | 58 | ino = ufs_inode_by_name(dir, dentry); |
59 | if (ino) { | 59 | if (ino) { |
60 | inode = iget(dir->i_sb, ino); | 60 | inode = ufs_iget(dir->i_sb, ino); |
61 | if (!inode) { | 61 | if (IS_ERR(inode)) { |
62 | unlock_kernel(); | 62 | unlock_kernel(); |
63 | return ERR_PTR(-EACCES); | 63 | return ERR_CAST(inode); |
64 | } | 64 | } |
65 | } | 65 | } |
66 | unlock_kernel(); | 66 | unlock_kernel(); |