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)
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>

No differences found