platform/x86: surface3-wmi: Balance locking on error path
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 15 Dec 2016 01:10:02 +0000 (03:10 +0200)
committerDarren Hart <dvhart@linux.intel.com>
Sun, 18 Dec 2016 22:56:43 +0000 (14:56 -0800)
commit83da6b59919a71a1a97ce9863aa0267eaf6d496c
tree945790779b9a88332ed8b1000e632da01f5b4e7f
parent957ae5098185e763b5c06be6c3b4b6e98c048712
platform/x86: surface3-wmi: Balance locking on error path

There is a possibility that lock will be left acquired.
Consolidate error path under out_free_unlock label.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/surface3-wmi.c