Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jan 2012 00:26:53 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230181 - head/sys/dev/sound/pci/hda
Message-ID:  <201201160026.q0G0QrnK007418@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Mon Jan 16 00:26:52 2012
New Revision: 230181
URL: http://svn.freebsd.org/changeset/base/230181

Log:
  Add check to avoid assertion panic on duplicate stop.
  
  Reported by:	Yuri Pankov <yuri.pankov@gmail.com>
  MFC after:	2 months

Modified:
  head/sys/dev/sound/pci/hda/hdaa.c

Modified: head/sys/dev/sound/pci/hda/hdaa.c
==============================================================================
--- head/sys/dev/sound/pci/hda/hdaa.c	Mon Jan 16 00:26:49 2012	(r230180)
+++ head/sys/dev/sound/pci/hda/hdaa.c	Mon Jan 16 00:26:52 2012	(r230181)
@@ -1351,6 +1351,8 @@ hdaa_channel_stop(struct hdaa_chan *ch)
 	struct hdaa_widget *w;
 	int i;
 
+	if ((ch->flags & HDAA_CHN_RUNNING) == 0)
+		return;
 	ch->flags &= ~HDAA_CHN_RUNNING;
 	HDAC_STREAM_STOP(device_get_parent(devinfo->dev), devinfo->dev,
 	    ch->dir == PCMDIR_PLAY ? 1 : 0, ch->sid);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201160026.q0G0QrnK007418>