aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ufs/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ufs/namei.c')
-rw-r--r--fs/ufs/namei.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/ufs/namei.c b/fs/ufs/namei.c
index d8bfbee2fe2b..e3a9b1fac75a 100644
--- a/fs/ufs/namei.c
+++ b/fs/ufs/namei.c
@@ -29,8 +29,9 @@
29 29
30#include <linux/time.h> 30#include <linux/time.h>
31#include <linux/fs.h> 31#include <linux/fs.h>
32#include <linux/ufs_fs.h>
33#include <linux/smp_lock.h> 32#include <linux/smp_lock.h>
33
34#include "ufs_fs.h"
34#include "ufs.h" 35#include "ufs.h"
35#include "util.h" 36#include "util.h"
36 37
@@ -57,10 +58,10 @@ static struct dentry *ufs_lookup(struct inode * dir, struct dentry *dentry, stru
57 lock_kernel(); 58 lock_kernel();
58 ino = ufs_inode_by_name(dir, dentry); 59 ino = ufs_inode_by_name(dir, dentry);
59 if (ino) { 60 if (ino) {
60 inode = iget(dir->i_sb, ino); 61 inode = ufs_iget(dir->i_sb, ino);
61 if (!inode) { 62 if (IS_ERR(inode)) {
62 unlock_kernel(); 63 unlock_kernel();
63 return ERR_PTR(-EACCES); 64 return ERR_CAST(inode);
64 } 65 }
65 } 66 }
66 unlock_kernel(); 67 unlock_kernel();