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

Miquel Raynal miquel.raynal at bootlin.com
Sun Jun 6 23:22:55 PDT 2021


Hello,

Yang Yingliang <yangyingliang at huawei.com> 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 at huawei.com>
> Signed-off-by: Yang Yingliang <yangyingliang at huawei.com>

Reviewed-by: Miquel Raynal <miquel.raynal at bootlin.com>

Thanks,
Miquèl



More information about the linux-i3c mailing list