Print this page
10141 smatch fix for zoneadmd
*** 2272,2286 ****
for (;;)
(void) pause();
child_out:
assert(pid == 0);
! if (shstate != NULL) {
shstate->status = -1;
(void) sema_post(&shstate->sem);
(void) munmap((char *)shstate, shstatelen);
- }
/*
* This might trigger an unref notification, but if so,
* we are still holding the lock, so our call to exit will
* ultimately win the race and will publish the right exit
--- 2272,2285 ----
for (;;)
(void) pause();
child_out:
assert(pid == 0);
!
shstate->status = -1;
(void) sema_post(&shstate->sem);
(void) munmap((char *)shstate, shstatelen);
/*
* This might trigger an unref notification, but if so,
* we are still holding the lock, so our call to exit will
* ultimately win the race and will publish the right exit