diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2006-02-14 03:36:21 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2006-02-14 03:36:21 +0000 |
commit | 01d5cc112d5ce7c41aa6f382b107f50114642197 (patch) | |
tree | a0aed8580af6b2a3dd5b8d73fdfa499e0bdd46f5 /lib | |
parent | dd63b1cc0ea96df7ec3758671eda618e30251c36 (diff) |
Notes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libmemstat/memstat_uma.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libmemstat/memstat_uma.c b/lib/libmemstat/memstat_uma.c index 924b7c252b0fe..dfbf31cca76df 100644 --- a/lib/libmemstat/memstat_uma.c +++ b/lib/libmemstat/memstat_uma.c @@ -397,8 +397,7 @@ memstat_kvm_uma(struct memory_type_list *list, void *kvm_handle) &ub, sizeof(ub), 0); if (ret != 0) { _memstat_mtl_empty(list); - list->mtl_error = - MEMSTAT_ERROR_NOMEMORY; + list->mtl_error = ret; return (-1); } mtp->mt_free += ub.ub_cnt; @@ -408,8 +407,7 @@ memstat_kvm_uma(struct memory_type_list *list, void *kvm_handle) &ub, sizeof(ub), 0); if (ret != 0) { _memstat_mtl_empty(list); - list->mtl_error = - MEMSTAT_ERROR_NOMEMORY; + list->mtl_error = ret; return (-1); } mtp->mt_free += ub.ub_cnt; |