diff options
author | Bryan Cantrill <bryan@joyent.com> | 2016-03-16 22:04:55 +0000 |
---|---|---|
committer | Bryan Cantrill <bryan@joyent.com> | 2016-03-16 22:05:28 +0000 |
commit | 28e4c4c84ee16378fb117d071af1fb819696b1ea (patch) | |
tree | b5e0f66d53e9f406d3e12651976387f8ec3d45d6 | |
parent | 644273dc7cbf14a9d85099c3f9e954c14578ab07 (diff) | |
download | illumos-joyent-28e4c4c84ee16378fb117d071af1fb819696b1ea.tar.gz |
OS-5252 lx brand: mremap() can fail spuriously with ENOMEMrelease-20160317
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
-rw-r--r-- | usr/src/lib/brand/lx/lx_brand/common/mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/brand/lx/lx_brand/common/mem.c b/usr/src/lib/brand/lx/lx_brand/common/mem.c index 98810cdbc2..c84a07d76d 100644 --- a/usr/src/lib/brand/lx/lx_brand/common/mem.c +++ b/usr/src/lib/brand/lx/lx_brand/common/mem.c @@ -21,7 +21,7 @@ /* * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. - * Copyright 2015 Joyent, Inc. + * Copyright 2016 Joyent, Inc. */ #include <errno.h> @@ -544,7 +544,7 @@ lx_remap_anon(prmap_t *map, prmap_t *maps, int nmap, * and our hint. */ for (i = 0; i < nmap; i++) { - if (maps[i].pr_vaddr < (uintptr_t)(1 << 3UL)) + if (maps[i].pr_vaddr < (uintptr_t)(1 << 31UL)) continue; hint = (void *)(maps[i].pr_vaddr - (new_size << 4UL)); |