Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6021
b: refs/heads/master
c: 36676bc
h: refs/heads/master
i:
  6019: 6918bda
v: v3
  • Loading branch information
James Bottomley authored and Linus Torvalds committed Aug 27, 2005
1 parent 422c61e commit b0504a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 657390d25d4241705cb4fc5b3b4ba5b30575dc17
refs/heads/master: 36676bcbf9f6bcbea9d06e67ee8d04eacde54952
4 changes: 4 additions & 0 deletions trunk/fs/sysfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ void sysfs_hash_and_remove(struct dentry * dir, const char * name)
struct sysfs_dirent * sd;
struct sysfs_dirent * parent_sd = dir->d_fsdata;

if (dir->d_inode == NULL)
/* no inode means this hasn't been made visible yet */
return;

down(&dir->d_inode->i_sem);
list_for_each_entry(sd, &parent_sd->s_children, s_sibling) {
if (!sd->s_element)
Expand Down

0 comments on commit b0504a3

Please sign in to comment.