diff options
| author | ZYH <[email protected]> | 2018-09-22 14:49:47 +0800 |
|---|---|---|
| committer | ZYH <[email protected]> | 2018-09-22 14:49:47 +0800 |
| commit | f260f7effde7bca0546cfebfbdfabf79996f870e (patch) | |
| tree | b5a6602c762b1c0c1e5ebd2f7e6ae3bb00b0bb98 /components | |
| parent | c042690e593705eb28fc71c063aefb8fff54a3d2 (diff) | |
[Components][SDIO]fix Assigned value is garbage or undefined
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/sdio/sdio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/drivers/sdio/sdio.c b/components/drivers/sdio/sdio.c index 67e82156b3..4c669e808c 100644 --- a/components/drivers/sdio/sdio.c +++ b/components/drivers/sdio/sdio.c @@ -140,6 +140,7 @@ rt_int32_t sdio_io_rw_direct(struct rt_mmcsd_card *card, RT_ASSERT(card != RT_NULL); RT_ASSERT(fn <= SDIO_MAX_FUNCTIONS); + RT_ASSERT(pdata != RT_NULL); if (reg_addr & ~SDIO_ARG_CMD53_REG_MASK) return -RT_ERROR; |
