From 6e462e3666c42f44636a97d9275b01c206f8a163 Mon Sep 17 00:00:00 2001
From: David Huang <d-huang@ti.com>
Date: Thu, 23 Apr 2020 18:45:31 -0500
Subject: [PATCH] osal: tirtos: osa_queue: Fix semaphore cleanup

On queue deletion, fix semaphore deletion failure due to
incorrect address passed.

Signed-off-by: David Huang <d-huang@ti.com>
---
 osal/src/tirtos/osa_queue.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/osal/src/tirtos/osa_queue.c b/osal/src/tirtos/osa_queue.c
index 6596914aca49..9e0d7d86ad9b 100644
--- a/osal/src/tirtos/osa_queue.c
+++ b/osal/src/tirtos/osa_queue.c
@@ -97,7 +97,7 @@ int32 osa_utils_quedelete(osa_utils_quehandle *handle)
          * delete associated semaphore
          */
 
-        SemaphoreP_delete(&handle->semRd);
+        SemaphoreP_delete(handle->semRd);
 
     }
     if (handle->flags & OSA_UTILS_QUE_FLAG_BLOCK_QUE_PUT)
@@ -110,7 +110,7 @@ int32 osa_utils_quedelete(osa_utils_quehandle *handle)
          * delete associated semaphore
          */
 
-        SemaphoreP_delete(&handle->semWr);
+        SemaphoreP_delete(handle->semWr);
     }
 
     return OSA_STATUS_SOK;
-- 
2.17.1

