Merge git://git.infradead.org/users/cbou/battery-2.6.26

* git://git.infradead.org/users/cbou/battery-2.6.26:
  power_supply: Fix race in power_supply_uevent
This commit is contained in:
Linus Torvalds 2008-06-09 19:28:31 -07:00
Родитель d5301a0e88 56fa18e8f1
Коммит 849bf20e73
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
}