Skip to content
Commit 6ea39cc3 authored by Yang Yingliang's avatar Yang Yingliang Committed by Andi Shyti
Browse files

i2c: amd-mp2: drop free_irq() of devm_request_irq() allocated irq



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 the error path and
remove path.

Fixes: 969864ef ("i2c: amd-mp2: use msix/msi if the hardware supports")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Acked-by: default avatarShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Link: https://lore.kernel.org/r/20221103121146.99836-1-yangyingliang@huawei.com


Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
parent 4701f33a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment