changeset 5039:75097ff1169e

6583594 rctl_val_list_delete() is called with NULL root
author rd117015
date Thu, 13 Sep 2007 08:30:20 -0700
parents c27e9402c8fc
children ff6ebd8761a6
files usr/src/uts/common/os/rctl.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/os/rctl.c	Thu Sep 13 04:35:54 2007 -0700
+++ b/usr/src/uts/common/os/rctl.c	Thu Sep 13 08:30:20 2007 -0700
@@ -832,7 +832,8 @@
 	prev = *root;
 	if (rctl_val_cmp(rval, prev, 0) == 0) {
 		*root = prev->rcv_next;
-		(*root)->rcv_prev = NULL;
+		if (*root != NULL)
+			(*root)->rcv_prev = NULL;
 
 		kmem_cache_free(rctl_val_cache, prev);