ACPI / scan: Fix NULL pointer dereference in acpi_companion_match()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 13 Apr 2015 19:35:51 +0000 (21:35 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 13 Apr 2015 19:35:51 +0000 (21:35 +0200)
Commit e1acdeb0e770 "ACPI / scan: Simplify acpi_match_device()"
introduced code that may lead to a NULL pointer dereference when
trying to unlock a mutex.  Fix that.

Fixes: e1acdeb0e770 "ACPI / scan: Simplify acpi_match_device()"
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/scan.c

Simple merge