Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46621
b: refs/heads/master
c: b067db4
h: refs/heads/master
i:
  46619: 6ea1491
v: v3
  • Loading branch information
Mariusz Kozlowski authored and Greg Kroah-Hartman committed Feb 7, 2007
1 parent 9426056 commit 8498a2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: f75065367077bd3b77842a5aa523ecd05d33e82d
refs/heads/master: b067db49e1f4013ef02ef68845701b600e88a722
6 changes: 2 additions & 4 deletions trunk/lib/kobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ int kobject_add(struct kobject * kobj)
if (error) {
/* unlink does the kobject_put() for us */
unlink(kobj);
if (parent)
kobject_put(parent);
kobject_put(parent);

/* be noisy on error issues */
if (error == -EEXIST)
Expand Down Expand Up @@ -420,8 +419,7 @@ void kobject_cleanup(struct kobject * kobj)
t->release(kobj);
if (s)
kset_put(s);
if (parent)
kobject_put(parent);
kobject_put(parent);
}

static void kobject_release(struct kref *kref)
Expand Down

0 comments on commit 8498a2f

Please sign in to comment.