Re: [PATCH] PCIE/PME: fix possible use-after-free on remove

2019-02-25 Thread Mika Westerberg
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 > Cc: Frederick Lawler >

[PATCH] PCIE/PME: fix possible use-after-free on remove

2019-02-18 Thread Sven Van Asbroeck
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 Cc: Frederick Lawler Cc: Mika Westerberg Cc: Keith Busch Signed-off-by: Sven Van Asbroeck --- drive