Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86880
b: refs/heads/master
c: c1fe539
h: refs/heads/master
v: v3
  • Loading branch information
Cornelia Huck authored and Greg Kroah-Hartman committed Mar 4, 2008
1 parent d60e4d7 commit a6de3c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 135dee0cd0eb2638fab899b428e51f00e8c046a8
refs/heads/master: c1fe539a7e031302af1d121163e7ce68e679ba8c
5 changes: 3 additions & 2 deletions trunk/drivers/base/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,8 @@ static struct kobject *get_device_parent(struct device *dev,
static void cleanup_glue_dir(struct device *dev, struct kobject *glue_dir)
{
/* see if we live in a "glue" directory */
if (!dev->class || glue_dir->kset != &dev->class->class_dirs)
if (!glue_dir || !dev->class ||
glue_dir->kset != &dev->class->class_dirs)
return;

kobject_put(glue_dir);
Expand Down Expand Up @@ -773,7 +774,7 @@ int device_add(struct device *dev)
dev = get_device(dev);
if (!dev || !strlen(dev->bus_id)) {
error = -EINVAL;
goto Error;
goto Done;
}

pr_debug("device: '%s': %s\n", dev->bus_id, __FUNCTION__);
Expand Down

0 comments on commit a6de3c9

Please sign in to comment.