From 45c9b333329645fd4111e243b912074838b6c95a Mon Sep 17 00:00:00 2001 From: Alan Tull Date: Tue, 21 Feb 2012 12:35:20 -0600 Subject: [PATCH] ENGR00174925 HDMI Kernel panic whatever plug in or plug out Panic is due to runtime being a NULL pointer. Signed-off-by: Alan Tull --- sound/soc/imx/imx-hdmi-dma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/imx/imx-hdmi-dma.c b/sound/soc/imx/imx-hdmi-dma.c index eae530da490b..930cc2cc5785 100644 --- a/sound/soc/imx/imx-hdmi-dma.c +++ b/sound/soc/imx/imx-hdmi-dma.c @@ -314,7 +314,8 @@ static irqreturn_t hdmi_dma_isr(int irq, void *dev_id) status = hdmi_dma_get_irq_status(); hdmi_dma_clear_irq_status(status); - if (runtime->dma_area && rtd->tx_active && (status & HDMI_IH_AHBDMAAUD_STAT0_DONE)) { + if (runtime && runtime->dma_area && rtd->tx_active && + (status & HDMI_IH_AHBDMAAUD_STAT0_DONE)) { rtd->offset += rtd->period_bytes; rtd->offset %= rtd->period_bytes * rtd->periods; -- 2.39.2