http://defect.opensolaris.org/bz/show_bug.cgi?id=13995


Anurag S. Maskey <Anurag.Maskey at Sun.COM> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ACCEPTED                    |FIXINPROGRESS


--- Comment #1 from Anurag S. Maskey <Anurag.Maskey at Sun.COM> 2010-01-20 
18:56:51 UTC ---
nwamd_ncu_handle_state_event() copies the parent NCP name to the event message
when state change events are processed.

1856     /*
1857      * For NCU state changes, we need to supply the parent NCP name also.
1858      * It is best to fill this in here as we have the object lock - when
1859      * we create object state events we sometimes do not have the object
1860      * lock, but at this point in consuming the events (and prior to the
1861      * associated event message being sent out) we do.
1862      */
1863     (void) strlcpy(m->nwe_data.nwe_object_state.nwe_parent,
ncu->ncu_parent,
1864         sizeof (m->nwe_data.nwe_object_state.nwe_parent));

However, when state change will not be done (because the NCU is already in the
requested state), the parent NCP name is not copied.  These checks are done
before the parent name is copied.

Fix involves copying the parent NCP name to the event message right after
finding the NCU object and before checks on the states are done.

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Reply via email to