From f9b0ab6b2db8b997a79e0dde37b7240779c76cea Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Thu, 28 May 2015 15:45:56 +0200 Subject: [PATCH] baylibre-acme: Close sysfs files after stopping the acquisition. Add a missing call to dev_acquisition_close() in dev_acquisition_stop(). Signed-off-by: Bartosz Golaszewski --- src/hardware/baylibre-acme/api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hardware/baylibre-acme/api.c b/src/hardware/baylibre-acme/api.c index c91a9063..75f2c044 100644 --- a/src/hardware/baylibre-acme/api.c +++ b/src/hardware/baylibre-acme/api.c @@ -393,6 +393,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data) if (sdi->status != SR_ST_ACTIVE) return SR_ERR_DEV_CLOSED; + dev_acquisition_close(sdi); sr_session_source_remove_channel(sdi->session, devc->channel); g_io_channel_shutdown(devc->channel, FALSE, NULL); g_io_channel_unref(devc->channel);