Re: [PATCH -next v2] i3c: master: svc: drop free_irq of devm_request_irq allocated irq

From: Miquel Raynal
Date: Mon Jun 07 2021 - 02:23:06 EST


Hello,

Yang Yingliang <yangyingliang@xxxxxxxxxx> wrote on Wed, 2 Jun 2021
16:49:35 +0800:

> irq allocated with devm_request_irq() will be freed in devm_irq_release(),
> using free_irq() in ->remove() will causes a dangling pointer, and a
> subsequent double free. So remove the free_irq() in svc_i3c_master_remove().
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>

Reviewed-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>

Thanks,
Miquèl