]> err.no Git - linux-2.6/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)
commit9c0a76e16ee6648f4bd19563e9fe12a4f4fabba1
tree488a5d418ffa6b2a1d6c4f25c2ddd4393ab0e1df
parent197a2cd907e3a5278a1cfd48c86402133f38a9ba
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