|
Description
|
In topo_method_call(), we have:
topo_method_enter(mp);
if ((rc = mp->tim_func(mp->tim_mod, node, version, in, out))
< 0) {
if (mp->tim_mod->tm_errno == 0)
*err = ETOPO_METHOD_FAIL;
else
*err = mp->tim_mod->tm_errno;
}
topo_method_exit(mp);
The intent is that if the function didn't set 'tm_errno', we translate
this into ETOPO_METHOD_FAIL. But we don't zero the errno beforehand,
so we can end up with whatever the last module error happened to be.
|