]> git.karo-electronics.de Git - mv-sheeva.git/commit
hp-wmi: add error handling for hp_wmi_init
authorAxel Lin <axel.lin@gmail.com>
Thu, 10 Jun 2010 08:06:40 +0000 (16:06 +0800)
committerMatthew Garrett <mjg@redhat.com>
Tue, 3 Aug 2010 13:48:47 +0000 (09:48 -0400)
commitdfec5c48cdfdcb08d73d24cbf277de543ef864ae
tree49286224b8cc935b9b2f914e185960f69a34f5c8
parent35f2915c3bd0cd6950bdd9d461de565e8feae852
hp-wmi: add error handling for hp_wmi_init

Current implementation in hp_wmi_init does not check any error and always
return success.
This patch properly handles recource reclaim and return err in error path.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/hp-wmi.c