Browse Source

[Components][SDIO]fix Null point access

ZYH 6 years ago
parent
commit
3d69c44ab8
1 changed files with 1 additions and 0 deletions
  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;
                 host->card->sdio_function[i] = RT_NULL;
                 rt_free(host->card);
                 rt_free(host->card);
                 host->card = RT_NULL;
                 host->card = RT_NULL;
+                break;
             }
             }
         }
         }
     }
     }