nfit: acpi_nfit_notify(): Do not leave device locked
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 11 Dec 2015 20:24:10 +0000 (23:24 +0300)
committerDan Williams <dan.j.williams@intel.com>
Fri, 11 Dec 2015 22:24:26 +0000 (14:24 -0800)
commitd91e892825ae6f0ed4f8b07ae5d348eff86ab2ea
treee25ddeaa0a9eddc4ede432c2c4485e9504801153
parent527e9316f8ec44bd53d90fb9f611fa7ffff52bb9
nfit: acpi_nfit_notify(): Do not leave device locked

Even if dev->driver is null because we are being removed,
it is safer to not leave device locked.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit.c