Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353721
b: refs/heads/master
c: 4fa3e78
h: refs/heads/master
i:
  353719: 26554fc
v: v3
  • Loading branch information
Bjorn Helgaas authored and Greg Kroah-Hartman committed Feb 4, 2013
1 parent 5e6b999 commit 35449eb
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 422d26b6ecd77af8c77f2a40580679459825170f
refs/heads/master: 4fa3e78be7e985ca814ce2aa0c09cbee404efcf7
4 changes: 2 additions & 2 deletions trunk/drivers/base/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ int bus_for_each_dev(struct bus_type *bus, struct device *start,
struct device *dev;
int error = 0;

if (!bus)
if (!bus || !bus->p)
return -EINVAL;

klist_iter_init_node(&bus->p->klist_devices, &i,
Expand Down Expand Up @@ -324,7 +324,7 @@ struct device *bus_find_device(struct bus_type *bus,
struct klist_iter i;
struct device *dev;

if (!bus)
if (!bus || !bus->p)
return NULL;

klist_iter_init_node(&bus->p->klist_devices, &i,
Expand Down

0 comments on commit 35449eb

Please sign in to comment.