From ba6f0b25373a4d1321571c7b691b6e5f4f9f65f4 Mon Sep 17 00:00:00 2001 From: Qiu Wujie Date: Mon, 17 Nov 2014 14:06:29 +0800 Subject: mmc: sdio: make sure sdio_irq_thread pointer is not NULL. Signed-off-by: Wujie Qiu Change-Id: Icf01605c71a19e0ffa01e85b1ed93eb0704493da Reviewed-on: http://git.am.freescale.net:8181/23831 Tested-by: Review Code-CDREVIEW Reviewed-by: Xiaobo Xie Reviewed-by: Matthew Weigel diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index e07bd97..f6e07a0 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -398,7 +398,8 @@ static inline void mmc_signal_sdio_irq(struct mmc_host *host) { host->ops->enable_sdio_irq(host, 0); host->sdio_irq_pending = true; - wake_up_process(host->sdio_irq_thread); + if (host->sdio_irq_thread) + wake_up_process(host->sdio_irq_thread); } #ifdef CONFIG_REGULATOR -- cgit v0.10.2