diff --git a/bsp/rv32m1_vega/ri5cy/board/fsl_host.c b/bsp/rv32m1_vega/ri5cy/board/fsl_host.c index 8d64cf2ab5..f9a1f786a8 100644 --- a/bsp/rv32m1_vega/ri5cy/board/fsl_host.c +++ b/bsp/rv32m1_vega/ri5cy/board/fsl_host.c @@ -51,7 +51,7 @@ static status_t USDHC_TransferFunction(USDHC_Type *base, usdhc_transfer_t *conte usdhc_adma_config_t dmaConfig; - if (content->data != NULL) + if (content != NULL && content->data != NULL) { memset(&dmaConfig, 0, sizeof(usdhc_adma_config_t)); /* config adma */