diff options
author | Clément Bénier <clement.benier@iot.bzh> | 2019-04-08 16:05:03 +0200 |
---|---|---|
committer | Clément Bénier <clement.benier@iot.bzh> | 2019-04-08 16:05:03 +0200 |
commit | 1443e88be2b685eec831d66e43a8bcd8a8b32e3d (patch) | |
tree | 200814bac2ba443c155e2e08d712d10626ed277e /binding | |
parent | 01c17aded25c5c6e258e413cae82de9dabbceee1 (diff) |
iiodevices-binding: Use-after-free fixedhalibut_8.0.6halibut_8.0.5halibut_8.0.4halibut_8.0.3halibut_8.0.2halibut_8.0.1halibut_8.0.0halibut_7.99.3halibut_7.99.2halibut_7.99.1halibut/8.0.6halibut/8.0.5halibut/8.0.4halibut/8.0.3halibut/8.0.2halibut/8.0.1halibut/8.0.0halibut/7.99.3halibut/7.99.2halibut/7.99.18.0.68.0.58.0.48.0.38.0.28.0.18.0.07.99.37.99.27.99.1halibut
- call afb req fail before free client
Change-Id: I8e5157a6ede435541bbfe0f05e3db4dfd1f37dd9
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
Diffstat (limited to 'binding')
-rw-r--r-- | binding/iiodevices-binding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binding/iiodevices-binding.c b/binding/iiodevices-binding.c index 61e43ca..b5a7588 100644 --- a/binding/iiodevices-binding.c +++ b/binding/iiodevices-binding.c @@ -550,8 +550,8 @@ static void subscribe(struct afb_req request) client = add_new_client(&iio_infos[i], iioelts, u_period); init_dev(client); if(!client->dev) { - deinit_client_sub(client); afb_req_fail_f(request, "failed", "No %s device found", client->infos->dev_name); + deinit_client_sub(client); return; } init_channel(client, iioelts); |