diff options
author | Alan Tull <r80115@freescale.com> | 2012-02-21 12:35:20 -0600 |
---|---|---|
committer | Alan Tull <r80115@freescale.com> | 2012-02-21 12:45:52 -0600 |
commit | 12db5957547f655fb2196a425a21f88e0d280976 (patch) | |
tree | 7b859a5f6099e534e69fc7d5a6c2538747adc599 /sound | |
parent | 33b2df341b07ba3f95bfdc3d1fe426360e225e2b (diff) |
ENGR00174925 HDMI Kernel panic whatever plug in or plug out
Panic is due to runtime being a NULL pointer.
Signed-off-by: Alan Tull <r80115@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/imx/imx-hdmi-dma.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |