Skip to content

Commit

Permalink
OS-6323 want stack-clash mitigation [fix missing parens]
Browse files Browse the repository at this point in the history
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Alex Wilson <alex.wilson@joyent.com>
Approved by: Alex Wilson <alex.wilson@joyent.com>
  • Loading branch information
pfmooney committed Sep 28, 2017
1 parent 2f3c8e4 commit 5d95817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/src/uts/common/vm/vm_as.c
Expand Up @@ -2330,7 +2330,7 @@ as_ctl(struct as *as, caddr_t addr, size_t size, int func, int attr,
}

for (seg = AS_SEGFIRST(as); seg; seg = AS_SEGNEXT(as, seg)) {
if (seg->s_flags & S_HOLE != 0) {
if ((seg->s_flags & S_HOLE) != 0) {
continue;
}
error = SEGOP_LOCKOP(seg, seg->s_base,
Expand Down Expand Up @@ -2362,7 +2362,7 @@ as_ctl(struct as *as, caddr_t addr, size_t size, int func, int attr,
mutex_exit(&as->a_contents);

for (seg = AS_SEGFIRST(as); seg; seg = AS_SEGNEXT(as, seg)) {
if (seg->s_flags & S_HOLE != 0) {
if ((seg->s_flags & S_HOLE) != 0) {
continue;
}
error = SEGOP_LOCKOP(seg, seg->s_base,
Expand Down

0 comments on commit 5d95817

Please sign in to comment.