usb: dwc3: of-simple: fix use-after-free on remove
From: Johan Hovold <johan@kernel.org>
Date: 2018-06-18 08:34:22
From: Johan Hovold <johan@kernel.org>
Date: 2018-06-18 08:34:22
On Mon, Jun 18, 2018 at 11:15:41AM +0300, Felipe Balbi wrote:
I don't use this glue layer, actually. As long as there are no regressions, you can change it to your heart's content. I still it's best to start with pm runtime blocked and let userspace decide what and when should have pm runtime enabled.
I don't use it either, I just noticed the use-after-free in remove() (and that probe was returning with a positive runtime PM usage count). I suggest merging this fix for 4.18-rc, and then Roger can rework the driver so that it works also on OMAP. Thanks, Johan --- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html