svn commit: r230181 - head/sys/dev/sound/pci/hda
Alexander Motin
mav at FreeBSD.org
Mon Jan 16 00:26:53 UTC 2012
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 at 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);
More information about the svn-src-head
mailing list