]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit370227505676cc2571db64f87642442fc05d83c8
tree945790779b9a88332ed8b1000e632da01f5b4e7f
parent0b93b59ff0677207e02e0d89f174de901483265b
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