Skip to content
Commit 128516e4 authored by Dan Carpenter's avatar Dan Carpenter Committed by Marc Zyngier
Browse files

iio: dummy_evgen: Fix use after free on error in iio_dummy_evgen_create()



We need to preserve the "iio_evgen->irq_sim_domain" error code before
we free "iio_evgen" otherwise it leads to a use after free.

Fixes: 337cbeb2 ("genirq/irq_sim: Simplify the API")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
parent c5d6082d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment