login
Header Space

 
 

Re: 2.6.25-rc8-mm1 -- BUG: bad unlock balance detected!

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Miles Lane <miles.lane@...>
Cc: Andrew Morton <akpm@...>, LKML <linux-kernel@...>, Jaroslav Kysela <perex@...>, <tiwai@...>
Date: Thursday, April 3, 2008 - 5:58 am

[Trimmed CC a bit, add Takashi Iwai]
Hi,
On Wed, Apr 02, 2008 at 08:19:29AM -0400, Miles Lane wrote:
The following patch should fix it. The buggy code comes from
git-alsa-tiwai.patch .

Regards,
Frederik


diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 689d177..a6be6e3 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -2665,8 +2665,8 @@ int snd_hda_multi_out_analog_open(struct hda_codec *codec,
 			if (mout->spdif_maxbps < hinfo->maxbps)
 				hinfo->maxbps = mout->spdif_maxbps;
 		}
+		mutex_unlock(&codec->spdif_mutex);
 	}
-	mutex_unlock(&codec->spdif_mutex);
 	return snd_pcm_hw_constraint_step(substream->runtime, 0,
 					  SNDRV_PCM_HW_PARAM_CHANNELS, 2);
 }
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.25-rc8-mm1 -- BUG: bad unlock balance detected!, Miles Lane, (Wed Apr 2, 8:19 am)
Re: 2.6.25-rc8-mm1 -- BUG: bad unlock balance detected!, Frederik Deweerdt, (Thu Apr 3, 5:58 am)
Re: 2.6.25-rc8-mm1 -- BUG: bad unlock balance detected!, Takashi Iwai, (Mon Apr 14, 6:30 am)
speck-geostationary