summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ce35c99)
raw | patch | inline | side by side (parent: ce35c99)
author | Ramsey Harris <ramsey@ti.com> | |
Fri, 6 Mar 2015 00:51:08 +0000 (16:51 -0800) | ||
committer | Robert Tivy <rtivy@ti.com> | |
Fri, 6 Mar 2015 01:33:18 +0000 (17:33 -0800) |
NameServer_get takes an array of procIds. The last element in the
array must be MultiProc_INVALIDID (the array size is not known).
However, several places in IPC call this function and pass an array
which does not have the last entry marker. NameServer_get had a check
to stop iterating when the number of processors in the cluster had
been reached. I removed this check. I'm now restoring this check.
array must be MultiProc_INVALIDID (the array size is not known).
However, several places in IPC call this function and pass an array
which does not have the last entry marker. NameServer_get had a check
to stop iterating when the number of processors in the cluster had
been reached. I removed this check. I'm now restoring this check.
packages/ti/sdo/utils/NameServer.c | patch | blob | history |
index 97303bc0e6526b818a7590279bc05f3716f92820..55240befe12445bf207eaeacab3920c3ab1b265d 100644 (file)
UInt16 baseId;
UInt16 length;
UInt16 index;
UInt16 baseId;
UInt16 length;
UInt16 index;
+ UInt16 cluster;
Error_init(&eb);
Error_init(&eb);
* somewhere in the list.
*/
status = NameServer_E_NOTFOUND;
* somewhere in the list.
*/
status = NameServer_E_NOTFOUND;
+ cluster = MultiProc_getNumProcsInCluster();
- for (i = 0; procId[i] != MultiProc_INVALIDID; i++) {
+ for (i = 0; (procId[i] != MultiProc_INVALIDID) && (i < cluster); i++) {
if (procId[i] == MultiProc_self()) {
/* check local */
status = NameServer_getLocal(handle, name, value, len);
if (procId[i] == MultiProc_self()) {
/* check local */
status = NameServer_getLocal(handle, name, value, len);