commit | 128516e49de67d10d52fba62ef8d482b220ac4b0 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed May 20 15:03:06 2020 +0300 |
committer | Marc Zyngier <maz@kernel.org> | Wed May 20 13:11:41 2020 +0100 |
tree | d25a43c9f67961a039543aab7bbd967c4687f33d | |
parent | c5d6082d35e0bcc20a26a067ffcfddcb5257e580 [diff] |
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: 337cbeb2c13e ("genirq/irq_sim: Simplify the API") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Marc Zyngier <maz@kernel.org>