public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix NULL dereference when suspending snd_opl3sa2
@ 2009-03-16 10:01 Lubomir Rintel
  2009-03-16 14:16 ` Lubomir Rintel
  0 siblings, 1 reply; 5+ messages in thread
From: Lubomir Rintel @ 2009-03-16 10:01 UTC (permalink / raw)
  To: Linux Kernel Mailing List, linux-sound
  Cc: Krzysztof Helt, stable, Andrew Morton

This should fix the following OOPS:
http://www.kerneloops.org/raw.php?rawid=80591&msgid=

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
---
 sound/isa/opl3sa2.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sound/isa/opl3sa2.c b/sound/isa/opl3sa2.c
index 58c972b..483c284 100644
--- a/sound/isa/opl3sa2.c
+++ b/sound/isa/opl3sa2.c
@@ -553,7 +553,8 @@ static int snd_opl3sa2_suspend(struct snd_card
*card, pm_message_t state)
 	struct snd_opl3sa2 *chip = card->private_data;
 
 	snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);
-	chip->wss->suspend(chip->wss);
+	if (chip->wss->suspend)
+		chip->wss->suspend(chip->wss);
 	/* power down */
 	snd_opl3sa2_write(chip, OPL3SA2_PM_CTRL, OPL3SA2_PM_D3);
 
-- 
1.5.5.6




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

end of thread, other threads:[~2009-03-17  8:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-16 10:01 [PATCH] Fix NULL dereference when suspending snd_opl3sa2 Lubomir Rintel
2009-03-16 14:16 ` Lubomir Rintel
2009-03-16 18:21   ` Krzysztof Helt
2009-03-16 20:32   ` Krzysztof Helt
2009-03-17  8:30     ` Takashi Iwai

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