Print this page
10096 kstat update routines shouldn't check for NULL kstat
*** 14073,14083 ****
ill_t *ill;
netstackid_t stackid = (zoneid_t)(uintptr_t)kp->ks_private;
netstack_t *ns;
ip_stack_t *ipst;
! if (kp == NULL || kp->ks_data == NULL)
return (EIO);
if (rw == KSTAT_WRITE)
return (EACCES);
--- 14073,14083 ----
ill_t *ill;
netstackid_t stackid = (zoneid_t)(uintptr_t)kp->ks_private;
netstack_t *ns;
ip_stack_t *ipst;
! if (kp->ks_data == NULL)
return (EIO);
if (rw == KSTAT_WRITE)
return (EACCES);
*** 14210,14220 ****
icmp_named_kstat_t *icmpkp;
netstackid_t stackid = (zoneid_t)(uintptr_t)kp->ks_private;
netstack_t *ns;
ip_stack_t *ipst;
! if ((kp == NULL) || (kp->ks_data == NULL))
return (EIO);
if (rw == KSTAT_WRITE)
return (EACCES);
--- 14210,14220 ----
icmp_named_kstat_t *icmpkp;
netstackid_t stackid = (zoneid_t)(uintptr_t)kp->ks_private;
netstack_t *ns;
ip_stack_t *ipst;
! if (kp->ks_data == NULL)
return (EIO);
if (rw == KSTAT_WRITE)
return (EACCES);