Re: [char-misc 4.2] mei: nfc: fix deadlock on shutdown/suspend path

From: Linus Torvalds
Date: Tue Jul 07 2015 - 17:40:31 EST


On Tue, Jul 7, 2015 at 2:22 PM, Tomas Winkler <tomas.winkler@xxxxxxxxx> wrote:
> In function mei_nfc_host_exit mei_cl_remove_device cannot be called
> under the device mutex as device removing flow invokes the device driver
> remove handler that calls in turn to mei_cl_disable_device which
> naturally acquires the device mutex.

Yup, tested and confirmed. This patch fixes things for me without the
revert. Thanks.

Greg, should I just apply it directly, or do we go through your tree?

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/