Another minor fix in lookup.c

This commit is contained in:
Bahadir Balban
2008-02-14 21:32:39 +00:00
parent 329dc53982
commit 7bbc21d105
2 changed files with 3 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ struct vnode *generic_vnode_lookup(struct vnode *thisnode, char *path)
/* Are there any more path components? */
if (path) {
/* Read directory contents */
if ((err = (int)d->vnode->ops.readdir(d->vnode)))
if ((err = d->vnode->ops.readdir(d->vnode)) < 0)
return PTR_ERR(err);
/* Search all children one level below. */