Commit 5362ce25 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 3ffba689
......@@ -598,6 +598,8 @@ int nameserver_remotenotify_delete(void **rhandle)
obj->params.notify_event_no,
nameserver_remotenotify_callback,
(void *)obj);
if (retval == NOTIFY_SUCCESS)
retval = 0;
gate = obj->local_gate;
kfree(obj);
kfree(handle);
......
......@@ -225,7 +225,8 @@ int sharedregion_add(u32 index, void *base, u32 len)
break;
}
if ((void *)((u32)base + len) >= entry->base) {
if ((base < entry->base) &&
(void *)((u32)base + len) >= entry->base) {
overlap = true;
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