diff options
author | Joshua M. Clulow <jmc@joyent.com> | 2015-12-23 21:54:06 -0800 |
---|---|---|
committer | Joshua M. Clulow <jmc@joyent.com> | 2015-12-24 05:55:03 +0000 |
commit | 0d56f63429ba37690a8103bc0bdaa869d18f6187 (patch) | |
tree | 9bb13ad63106db1cb8a1c64e07feaff39726743c /usr/src | |
parent | a81b0e43f93bc9d5a14c347791eb6a7f5e8d81b2 (diff) | |
download | illumos-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.c | 6 |
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: |