]> git.baikalelectronics.ru Git - kernel.git/commit
thinkpad-acpi: fix initialization error paths
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Wed, 4 Jun 2008 02:36:10 +0000 (23:36 -0300)
committerLen Brown <len.brown@intel.com>
Wed, 11 Jun 2008 23:13:45 +0000 (19:13 -0400)
commit61d7816417dbae099ec0f779334e3ecf9282e917
tree488a5d418ffa6b2a1d6c4f25c2ddd4393ab0e1df
parent1cad11072fc344d3b32c5c487c2a8f5ec0142c2a
thinkpad-acpi: fix initialization error paths

Rework some subdriver init and exit handlers, in order to fix some
initialization error paths that were missing, or broken.

Hitting those bugs should be extremely rare in the real world, but should
that happen, thinkpad-acpi would fail to dealocate some resources and a
reboot might well be needed to be able to load the driver again.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/misc/thinkpad_acpi.c