Skip to content

Commit

Permalink
Merge git://git.infradead.org/users/cbou/battery-2.6.26
Browse files Browse the repository at this point in the history
* git://git.infradead.org/users/cbou/battery-2.6.26:
  power_supply: Fix race in power_supply_uevent
  • Loading branch information
Linus Torvalds committed Jun 10, 2008
2 parents d5301a0 + 56fa18e commit 849bf20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/power_supply_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ int power_supply_uevent(struct device *dev, struct kobj_uevent_env *env)

dev_dbg(dev, "uevent\n");

if (!psy) {
if (!psy || !psy->dev) {
dev_dbg(dev, "No power supply yet\n");
return ret;
}
Expand Down

0 comments on commit 849bf20

Please sign in to comment.