Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67985
b: refs/heads/master
c: 5c3e896
h: refs/heads/master
i:
  67983: fcc7aad
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Oct 12, 2007
1 parent 43c8c89 commit 9a678df
Show file tree
Hide file tree
Showing 2 changed files with 6 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: dc8c85871c9728c5fddca6854a191fd41eb9438c
refs/heads/master: 5c3e8964ce87477a12e3e9edc3742156a3929a74
6 changes: 5 additions & 1 deletion trunk/fs/sysfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,12 @@ void sysfs_addrm_start(struct sysfs_addrm_cxt *acxt,
*/
int sysfs_add_one(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd)
{
if (sysfs_find_dirent(acxt->parent_sd, sd->s_name))
if (sysfs_find_dirent(acxt->parent_sd, sd->s_name)) {
printk(KERN_WARNING "sysfs: duplicate filename '%s' "
"can not be created\n", sd->s_name);
WARN_ON(1);
return -EEXIST;
}

sd->s_parent = sysfs_get(acxt->parent_sd);

Expand Down

0 comments on commit 9a678df

Please sign in to comment.