OSDN Git Service

android/hal-ipc: Fix missing mutex unlock
authorSzymon Janc <szymon.janc@tieto.com>
Tue, 20 May 2014 10:33:09 +0000 (12:33 +0200)
committerSzymon Janc <szymon.janc@tieto.com>
Thu, 12 Jun 2014 11:04:30 +0000 (13:04 +0200)
This is a preparation for destroy callback.

android/hal-ipc.c

index 81d3a1b..ee3a04c 100644 (file)
@@ -366,6 +366,7 @@ int hal_ipc_cmd(uint8_t service_id, uint8_t opcode, uint16_t len, void *param,
        /* socket was shutdown */
        if (ret == 0) {
                error("Command socket closed, aborting");
+               pthread_mutex_unlock(&cmd_sk_mutex);
                exit(EXIT_FAILURE);
        }