diff options
Diffstat (limited to 'fs/sysfs/inode.c')
-rw-r--r-- | fs/sysfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c index 5c605b0003a8..617d10cea07d 100644 --- a/fs/sysfs/inode.c +++ b/fs/sysfs/inode.c | |||
@@ -272,7 +272,7 @@ int sysfs_hash_and_remove(struct dentry * dir, const char * name) | |||
272 | parent_sd = dir->d_fsdata; | 272 | parent_sd = dir->d_fsdata; |
273 | mutex_lock_nested(&dir->d_inode->i_mutex, I_MUTEX_PARENT); | 273 | mutex_lock_nested(&dir->d_inode->i_mutex, I_MUTEX_PARENT); |
274 | list_for_each_entry(sd, &parent_sd->s_children, s_sibling) { | 274 | list_for_each_entry(sd, &parent_sd->s_children, s_sibling) { |
275 | if (!sd->s_element) | 275 | if (!sd->s_type) |
276 | continue; | 276 | continue; |
277 | if (!strcmp(sd->s_name, name)) { | 277 | if (!strcmp(sd->s_name, name)) { |
278 | list_del_init(&sd->s_sibling); | 278 | list_del_init(&sd->s_sibling); |