Changeset 859d006 in mainline


Ignore:
Timestamp:
2019-05-18T21:56:10Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Parents:
d49194d
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-05-18 21:51:42)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-05-18 21:56:10)
Message:

Correcting return handling of rtld/module_load()

Because of the previous commit 985e0f158464dec99e0760a13f626453991d6c60
the function can now return NULL in case of a failure. This
commit add a missing NULL test to module_load_deps()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/rtld/module.c

    rd49194d r859d006  
    302302                        if (!dm) {
    303303                                dm = module_load(m->rtld, dep_name, flags);
     304                                if (!dm) {
     305                                        return EINVAL;
     306                                }
     307
    304308                                errno_t rc = module_load_deps(dm, flags);
    305309                                if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.