Re: [PATCH] PCIE/PME: fix possible use-after-free on remove
From: Mika Westerberg
Date: Mon Feb 25 2019 - 09:58:05 EST
On Mon, Feb 18, 2019 at 02:57:30PM -0500, Sven Van Asbroeck wrote:
> In remove(), ensure that the pme work cannot run after kfree()
> is called. Otherwise, this could result in a use-after-free.
> This issue was detected with the help of Coccinelle.
> Cc: Sinan Kaya <okaya@xxxxxxxxxx>
> Cc: Frederick Lawler <fred@xxxxxxxxxxxx>
> Cc: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>
Reviewed-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>