From 284a81e9f8e26aa92e2c0a46604576ebc12bee17 Mon Sep 17 00:00:00 2001
From: Simon Que <sque@ti.com>
Date: Fri, 24 Jul 2009 20:18:02 -0500
Subject: [PATCH] SYSLINK:ipc-listmp sharedmemory delete procid check

listmp_sharedmemory_delete was not checking the owner proc ID correctly.

Signed-off-by: Simon Que <sque@ti.com>
---
 drivers/dsp/syslink/multicore_ipc/listmp_sharedmemory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 mode change 100644 => 100755 drivers/dsp/syslink/multicore_ipc/listmp_sharedmemory.c

diff --git a/drivers/dsp/syslink/multicore_ipc/listmp_sharedmemory.c b/drivers/dsp/syslink/multicore_ipc/listmp_sharedmemory.c
old mode 100644
new mode 100755
index 02b9e905be4..5dd92309124
--- a/drivers/dsp/syslink/multicore_ipc/listmp_sharedmemory.c
+++ b/drivers/dsp/syslink/multicore_ipc/listmp_sharedmemory.c
@@ -508,7 +508,7 @@ int listmp_sharedmemory_delete(listmp_sharedmemory_handle *listmp_handleptr)
 	obj = (struct listmp_sharedmemory_obj *) handle->obj;
 	params = (listmp_sharedmemory_params *) &obj->params;
 
-	if (obj->owner->proc_id == multiproc_get_id(NULL)) {
+	if (obj->owner->proc_id != multiproc_get_id(NULL)) {
 		status = -EPERM;
 		goto exit;
 	}
-- 
2.25.4