kernel-hacking-2024-linux-s.../drivers/power
Andres Salomon 839dc9f105 power: fix incorrect unregistration in power_supply_create_attrs error path
In power_supply_create_attrs(), we create static attributes as referenced
by power_supply_static_attrs[i].  After that, if we fail, we unregister
via power_supply_static_attrs[psy->properties[i]].  This is incorrect, as
psy->properties has absolutely no bearing on static attribs.  This patch
fixes it to unregister the correct attrib.

Another line which was unnecessarily line wrapped is also unwrapped.

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2008-02-02 02:42:59 +03:00
..
apm_power.c power supply : use class iteration api 2008-01-24 20:40:44 -08:00
ds2760_battery.c
Kconfig
Makefile
olpc_battery.c power: remove POWER_SUPPLY_PROP_CAPACITY_LEVEL 2008-02-02 02:42:59 +03:00
pda_power.c
pmu_battery.c
power_supply.h
power_supply_core.c power supply : use class iteration api 2008-01-24 20:40:44 -08:00
power_supply_leds.c [BATTERY] power_supply_leds: use kasprintf 2008-02-02 02:42:59 +03:00
power_supply_sysfs.c power: fix incorrect unregistration in power_supply_create_attrs error path 2008-02-02 02:42:59 +03:00