Fixed kernel exception caused by SPI Flash operation.