summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorAlan Tull <r80115@freescale.com>2012-02-21 12:35:20 -0600
committerAlan Tull <r80115@freescale.com>2012-02-21 12:57:02 -0600
commit94bd15b4b0311d2c7445b72e22bc273b9ff110ab (patch)
tree99941595477e863528b03e5c6f990c70a9a8f90a /sound
parent7ce46fbfcda2b6b5d5f3005c3d8dd639e625f292 (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.c3
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;