]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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 Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 17:25:25 +0000 (12:25 -0500)
commit8e71d09d632d72c1f8cc9c9daf4e70ceda982efd
treed81662cecf5806bdf22b4276301e681b66fa87a7
parent713efc68601b82e5b601024aa0a6fdb8d9236361
nfit: acpi_nfit_notify(): Do not leave device locked

Orabug: 22913653

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>
(cherry picked from commit d91e892825ae6f0ed4f8b07ae5d348eff86ab2ea)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/acpi/nfit.c