Kernel coding style,
disable interrupt before exit