summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorJoshua M. Clulow <jmc@joyent.com>2015-12-23 21:54:06 -0800
committerJoshua M. Clulow <jmc@joyent.com>2015-12-24 05:55:03 +0000
commit0d56f63429ba37690a8103bc0bdaa869d18f6187 (patch)
tree9bb13ad63106db1cb8a1c64e07feaff39726743c /usr/src
parenta81b0e43f93bc9d5a14c347791eb6a7f5e8d81b2 (diff)
downloadillumos-joyent-release-20151224.tar.gz
OS-5064 lxbrand select(2) spotted traipsing through the heaprelease-20151224
Reviewed by: Josh Wilsdon <jwilsdon@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/brand/lx/syscall/lx_poll.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/uts/common/brand/lx/syscall/lx_poll.c b/usr/src/uts/common/brand/lx/syscall/lx_poll.c
index e56aea98bf..a2d768206f 100644
--- a/usr/src/uts/common/brand/lx/syscall/lx_poll.c
+++ b/usr/src/uts/common/brand/lx/syscall/lx_poll.c
@@ -481,11 +481,11 @@ lx_select_copyout(pollfd_t *pollfdp, lx_select_buf_t *sbuf, int nfds,
pfd++;
}
if (rfds != NULL)
- sbuf->lsb_rfds[n] = in;
+ sbuf->lsb_rfds[n / LX_FD_SET_BITS] = in;
if (wfds != NULL)
- sbuf->lsb_wfds[n] = out;
+ sbuf->lsb_wfds[n / LX_FD_SET_BITS] = out;
if (efds != NULL)
- sbuf->lsb_efds[n] = ex;
+ sbuf->lsb_efds[n / LX_FD_SET_BITS] = ex;
}
copyout: