Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset a0e2f9c in mainline


Ignore:
Timestamp:
2019-05-26T13:21:50Z (20 months ago)
Author:
Jakub Jermář <jakub@…>
Branches:
master
Children:
0aa5c8a
Parents:
8aea932
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-05-18 21:51:42)
git-committer:
Jakub Jermář <jakub@…> (2019-05-26 13:21:50)
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

    r8aea932 ra0e2f9c  
    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.