public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: Samsung: i2s: Fix crash in i2s driver
@ 2013-05-07  3:39 Padmavathi Venna
  2013-05-07  9:03 ` Mark Brown
  2013-05-07  9:50 ` Tomasz Figa
  0 siblings, 2 replies; 4+ messages in thread
From: Padmavathi Venna @ 2013-05-07  3:39 UTC (permalink / raw)
  To: linux-arm-kernel

This patch fixes a null pointer deference in i2s driver in DT
case

Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
---

This patch is dependent on below patch posted by Thomas Abraham.
https://patchwork.kernel.org/patch/2224801/

 sound/soc/samsung/i2s.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c
index 7ce7c50..eaf6439 100644
--- a/sound/soc/samsung/i2s.c
+++ b/sound/soc/samsung/i2s.c
@@ -1182,7 +1182,7 @@ static int samsung_i2s_probe(struct platform_device *pdev)
 		pri_dai->sec_dai = sec_dai;
 	}
 
-	if (i2s_pdata->cfg_gpio && i2s_pdata->cfg_gpio(pdev)) {
+	if (i2s_pdata && i2s_pdata->cfg_gpio && i2s_pdata->cfg_gpio(pdev)) {
 		dev_err(&pdev->dev, "Unable to configure gpio\n");
 		ret = -EINVAL;
 		goto err;
-- 
1.7.4.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-07 11:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-07  3:39 [PATCH] ASoC: Samsung: i2s: Fix crash in i2s driver Padmavathi Venna
2013-05-07  9:03 ` Mark Brown
2013-05-07  9:50 ` Tomasz Figa
2013-05-07 11:12   ` Padma Venkat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox