Re: [PATCH 2/2] i2c: Fix a potential use after free
From: Wolfram Sang
Date: Thu Jun 16 2022 - 17:00:34 EST
On Fri, Dec 27, 2019 at 09:34:32AM +0000, Xu Wang wrote:
> Free the adap structure only after we are done using it.
> This patch just moves the put_device() down a bit to avoid the
> use after free.
>
> Signed-off-by: Xu Wang <vulab@xxxxxxxxxxx>
Added a comment why we reverse the order for putting our stuff and
applied to for-next, thanks! This way, we get more testing until it hits
upstream. Still, stable tag added because we want it to be backported if
all is well.
Attachment:
signature.asc
Description: PGP signature