Sfoglia il codice sorgente

[Components][SDIO]fix Null point access

ZYH 6 anni fa
parent
commit
3d69c44ab8
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      components/drivers/sdio/sdio.c

+ 1 - 0
components/drivers/sdio/sdio.c

@@ -938,6 +938,7 @@ err3:
                 host->card->sdio_function[i] = RT_NULL;
                 rt_free(host->card);
                 host->card = RT_NULL;
+                break;
             }
         }
     }