Print this page
10095 unchecked return value in segvn_pagelock()

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/vm/seg_vn.c
          +++ new/usr/src/uts/common/vm/seg_vn.c
↓ open down ↓ 9072 lines elided ↑ open up ↑
9073 9073                          void *ptag;
9074 9074                          if (pamp != NULL) {
9075 9075                                  ASSERT(svd->type == MAP_SHARED);
9076 9076                                  ptag = (void *)pamp;
9077 9077                                  paddr = (caddr_t)((addr - seg->s_base) +
9078 9078                                      ptob(svd->anon_index));
9079 9079                          } else {
9080 9080                                  ptag = (void *)seg;
9081 9081                                  paddr = addr;
9082 9082                          }
9083      -                        (*preclaim_callback)(ptag, paddr, len, *ppp, rw, 0);
     9083 +                        (void) preclaim_callback(ptag, paddr, len, *ppp, rw, 0);
9084 9084                  } else {
9085 9085                          ASSERT((*ppp)[npages] == PCACHE_SHWLIST ||
9086 9086                              IS_SWAPFSVP((*ppp)[npages]->p_vnode));
9087 9087                          len = lpgeaddr - lpgaddr;
9088 9088                          npages = btop(len);
9089 9089                          seg_pinactive(seg, pamp, paddr, len,
9090 9090                              *ppp - adjustpages, rw, pflags, preclaim_callback);
9091 9091                  }
9092 9092  
9093 9093                  if (pamp != NULL) {
↓ open down ↓ 1243 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX