]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/isofs/namei.c
Pb1200/DBAu1200: fix bad IDE resource size
[linux-2.6-omap-h63xx.git] / fs / isofs / namei.c
index e2b4dad39ca9d34641846284f43e51dc2715a095..344b247bc29ab1f104fcc25af9a831052267baad 100644 (file)
@@ -179,9 +179,9 @@ struct dentry *isofs_lookup(struct inode *dir, struct dentry *dentry, struct nam
        inode = NULL;
        if (found) {
                inode = isofs_iget(dir->i_sb, block, offset);
-               if (!inode) {
+               if (IS_ERR(inode)) {
                        unlock_kernel();
-                       return ERR_PTR(-EACCES);
+                       return ERR_CAST(inode);
                }
        }
        unlock_kernel();