[ldv-project] [PATCH] nfit: acpi_nfit_notify(): Do not leave device locked
Verma, Vishal L
vishal.l.verma at intel.com
Sat Dec 12 01:01:48 MSK 2015
On 12/11/15, 13:24, "Alexey Khoroshilov" <khoroshilov at ispras.ru> wrote:
>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 at ispras.ru>
>---
> drivers/acpi/nfit.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Looks good, thanks!
Reviewed-by: Vishal Verma <vishal.l.verma at intel.com>
>
>diff --git a/drivers/acpi/nfit.c b/drivers/acpi/nfit.c
>index e7ed39bab97d..aa45d4802707 100644
>--- a/drivers/acpi/nfit.c
>+++ b/drivers/acpi/nfit.c
>@@ -1810,7 +1810,7 @@ static void acpi_nfit_notify(struct acpi_device
>*adev, u32 event)
> if (!dev->driver) {
> /* dev->driver may be null if we're being removed */
> dev_dbg(dev, "%s: no driver found for dev\n", __func__);
>- return;
>+ goto out_unlock;
> }
>
> if (!acpi_desc) {
>--
>1.9.1
>
>
More information about the ldv-project
mailing list