diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2010-05-21 13:08:42 -0500 |
---|---|---|
committer | Patrick Williams <iawillia@us.ibm.com> | 2010-05-21 13:08:42 -0500 |
commit | 344e6d7bf3870202ff9206f389057e2c8a1e7345 (patch) | |
tree | abc875d9ac5fc929384938ad9554578d54d08698 /src | |
parent | b9652b36ff9bfa429ff3e9756e7e43f0da4ea1a7 (diff) | |
download | talos-hostboot-344e6d7bf3870202ff9206f389057e2c8a1e7345.tar.gz talos-hostboot-344e6d7bf3870202ff9206f389057e2c8a1e7345.zip |
Fix missing NULL check in pagemgr.C
Diffstat (limited to 'src')
-rw-r--r-- | src/kernel/pagemgr.C | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/kernel/pagemgr.C b/src/kernel/pagemgr.C index 728222a05..400ad118b 100644 --- a/src/kernel/pagemgr.C +++ b/src/kernel/pagemgr.C @@ -93,8 +93,11 @@ PageManager::page_t* PageManager::pop_bucket(size_t n) // Couldn't allocate from the correct size bucket, so split up an // item from the next sized bucket. p = pop_bucket(n+1); - push_bucket((page_t*) (((uint64_t)p) + (PAGESIZE * (1 << n))), - n); + if (NULL != p) + { + push_bucket((page_t*) (((uint64_t)p) + (PAGESIZE * (1 << n))), + n); + } } return p; } |