Commit 11e0641d authored by Suman Anna's avatar Suman Anna Committed by Hari Kanigeri

SYSLINK: ipc - fix the invalid comparision in sharedregion_add

This patch fixes the bug in sharedregion_add that does not allow
to add a second entry if the second entry's address is greater than
the first entry's address.

Minor status conversion statement added to nameserver_remotenotify
module to prevent the error in the shutdown phase of the MessageQ
sample.
Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
parent 2ff1bc20
...@@ -598,6 +598,8 @@ int nameserver_remotenotify_delete(void **rhandle) ...@@ -598,6 +598,8 @@ int nameserver_remotenotify_delete(void **rhandle)
obj->params.notify_event_no, obj->params.notify_event_no,
nameserver_remotenotify_callback, nameserver_remotenotify_callback,
(void *)obj); (void *)obj);
if (retval == NOTIFY_SUCCESS)
retval = 0;
gate = obj->local_gate; gate = obj->local_gate;
kfree(obj); kfree(obj);
kfree(handle); kfree(handle);
......
...@@ -225,7 +225,8 @@ int sharedregion_add(u32 index, void *base, u32 len) ...@@ -225,7 +225,8 @@ int sharedregion_add(u32 index, void *base, u32 len)
break; break;
} }
if ((void *)((u32)base + len) >= entry->base) { if ((base < entry->base) &&
(void *)((u32)base + len) >= entry->base) {
overlap = true; overlap = true;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment