From a6538ae7da2980904c9f0bc6e16caa11c414bb22 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Sun, 18 Sep 2016 08:20:31 +0200 Subject: [PATCH] Set error status if transfer fails in close This fixes whats probably was a merge error. This is a resync with upstream. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- src/hw_ostc3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hw_ostc3.c b/src/hw_ostc3.c index 81c54f0..e8df9b5 100644 --- a/src/hw_ostc3.c +++ b/src/hw_ostc3.c @@ -527,6 +527,7 @@ hw_ostc3_device_close (dc_device_t *abstract) rc = hw_ostc3_transfer (device, NULL, EXIT, NULL, 0, NULL, 0, NODELAY); if (rc != DC_STATUS_SUCCESS) { ERROR (abstract->context, "Failed to send the command."); + dc_status_set_error(&status, rc); } }