Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 59138
b: refs/heads/master
c: 9d9307d
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Greg Kroah-Hartman committed Jul 11, 2007
1 parent 46c3804 commit fad9028
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 0c73f18b7d95de8a007039337063a770b5fc8e7a
refs/heads/master: 9d9307dabb3de8140fb3801bf6eb01f231dbd83d
3 changes: 2 additions & 1 deletion trunk/fs/sysfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ void sysfs_drop_dentry(struct sysfs_dirent *sd)
int sysfs_hash_and_remove(struct dentry * dir, const char * name)
{
struct sysfs_dirent **pos, *sd;
struct sysfs_dirent *parent_sd = dir->d_fsdata;
struct sysfs_dirent *parent_sd;
int found = 0;

if (!dir)
Expand All @@ -295,6 +295,7 @@ int sysfs_hash_and_remove(struct dentry * dir, const char * name)
/* no inode means this hasn't been made visible yet */
return -ENOENT;

parent_sd = dir->d_fsdata;
mutex_lock_nested(&dir->d_inode->i_mutex, I_MUTEX_PARENT);
for (pos = &parent_sd->s_children; *pos; pos = &(*pos)->s_sibling) {
sd = *pos;
Expand Down

0 comments on commit fad9028

Please sign in to comment.