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

Changeset b389f95 in mainline for kernel/generic/src/mm/as.c


Ignore:
Timestamp:
2018-11-09T22:03:24Z (3 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master
Children:
4f3aa76
Parents:
deacd722
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-08 02:55:57)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-09 22:03:24)
Message:

Allow as_get_area_info() to fail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/as.c

    rdeacd722 rb389f95  
    22372237 *
    22382238 */
    2239 void as_get_area_info(as_t *as, as_area_info_t **obuf, size_t *osize)
     2239as_area_info_t *as_get_area_info(as_t *as, size_t *osize)
    22402240{
    22412241        mutex_lock(&as->lock);
     
    22452245
    22462246        size_t isize = area_cnt * sizeof(as_area_info_t);
    2247         as_area_info_t *info = nfmalloc(isize);
     2247        as_area_info_t *info = malloc(isize);
     2248        if (!info) {
     2249                mutex_unlock(&as->lock);
     2250                return NULL;
     2251        }
    22482252
    22492253        /* Record area data. */
     
    22672271        mutex_unlock(&as->lock);
    22682272
    2269         *obuf = info;
    22702273        *osize = isize;
     2274        return info;
    22712275}
    22722276
Note: See TracChangeset for help on using the changeset viewer.