From 78189dfb6b740965c91bb363a4ae14353a0ae7e5 Mon Sep 17 00:00:00 2001 From: tangyuxin <462747508@qq.com> Date: Sat, 21 Jul 2018 16:29:15 +0800 Subject: [PATCH] =?UTF-8?q?[components][drivers][sdio]=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=B3=A8=E5=86=8CSDIO=E4=B8=AD=E6=96=AD?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E6=96=AD=E8=A8=80=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/drivers/sdio/sdio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/drivers/sdio/sdio.c b/components/drivers/sdio/sdio.c index dc0cd1eb9..b105e6510 100644 --- a/components/drivers/sdio/sdio.c +++ b/components/drivers/sdio/sdio.c @@ -1171,7 +1171,8 @@ void sdio_irq_wakeup(struct rt_mmcsd_host *host) { if (host->flags & MMCSD_SUP_SDIO_IRQ) host->ops->enable_sdio_irq(host, 0); - rt_sem_release(host->sdio_irq_sem); + if (host->sdio_irq_sem) + rt_sem_release(host->sdio_irq_sem); } rt_int32_t sdio_enable_func(struct rt_sdio_function *func) -- GitLab