diff options
| author | rd117015 <none@none> | 2005-11-16 06:57:14 -0800 |
|---|---|---|
| committer | rd117015 <none@none> | 2005-11-16 06:57:14 -0800 |
| commit | 0da3d2a8cb1a64221b2c2628393a333a72138368 (patch) | |
| tree | 3f94c6fd9bc396d32f22dfb53f09b7ce57ca0bc3 | |
| parent | d485aa23b5e424dd136afdf657683389f93f72d6 (diff) | |
| download | illumos-joyent-0da3d2a8cb1a64221b2c2628393a333a72138368.tar.gz | |
6229754 segspt_reclaim() panics the system because pplist is NULL
| -rw-r--r-- | usr/src/uts/common/vm/seg_spt.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr/src/uts/common/vm/seg_spt.c b/usr/src/uts/common/vm/seg_spt.c index effbb21078..78d8de4329 100644 --- a/usr/src/uts/common/vm/seg_spt.c +++ b/usr/src/uts/common/vm/seg_spt.c @@ -985,7 +985,13 @@ segspt_dismpagelock(struct seg *seg, caddr_t addr, size_t len, * ENOTSUP, so that the as_pagelock() code will * then try the slower F_SOFTLOCK path. */ - sptd->spt_ppa = NULL; + if (pl_built) { + /* + * No one else has referenced the ppa[]. + * We created it and we need to destroy it. + */ + sptd->spt_ppa = NULL; + } ret = ENOTSUP; goto insert_fail; } |
