]> Pileus Git - ~andy/linux/blobdiff - fs/hppfs/hppfs.c
hppfs: fix the return value of get_inode()
[~andy/linux] / fs / hppfs / hppfs.c
index a68cb2092512a8a9460be9088f49ca8c0b514d2b..78f21f8dc2ecf4caf8427bdab5e1deb0c3470952 100644 (file)
@@ -674,7 +674,7 @@ static struct inode *get_inode(struct super_block *sb, struct dentry *dentry)
 
        if (!inode) {
                dput(dentry);
-               return ERR_PTR(-ENOMEM);
+               return NULL;
        }
 
        if (S_ISDIR(dentry->d_inode->i_mode)) {