Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75518
b: refs/heads/master
c: e49452c
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Linus Torvalds committed Jan 16, 2008
1 parent 5d95785 commit a12a3b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cbd9c883696da72b2b1f03f909dbacc04bbf8b58
refs/heads/master: e49452c67703d3647467d65275fb893589384fed
4 changes: 3 additions & 1 deletion trunk/fs/sysfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,10 @@ static struct dentry * sysfs_lookup(struct inode *dir, struct dentry *dentry,
sd = sysfs_find_dirent(parent_sd, dentry->d_name.name);

/* no such entry */
if (!sd)
if (!sd) {
ret = ERR_PTR(-ENOENT);
goto out_unlock;
}

/* attach dentry and inode */
inode = sysfs_get_inode(sd);
Expand Down

0 comments on commit a12a3b4

Please sign in to comment.