[PATCH AUTOSEL 4.14 13/25] exit: make setting exit_state consistent