aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2015-05-18 16:02:44 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2015-05-18 16:02:44 +0000
commit8dca9c27c95e82ceb3a549e7f76324d5db3d6fe1 (patch)
tree219c7ad7114311aedaf53917eb26b9a915247e86 /sys
parent78680d05d1fb21665527ca7e6c2ef8c3a22b31fb (diff)
downloadsrc-8dca9c27c95e82ceb3a549e7f76324d5db3d6fe1.tar.gz
src-8dca9c27c95e82ceb3a549e7f76324d5db3d6fe1.zip
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sound/pci/hda/hdaa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/hda/hdaa.c b/sys/dev/sound/pci/hda/hdaa.c
index 0d2ae4735b1d..fe4534378be7 100644
--- a/sys/dev/sound/pci/hda/hdaa.c
+++ b/sys/dev/sound/pci/hda/hdaa.c
@@ -3203,7 +3203,7 @@ hdaa_audio_as_parse(struct hdaa_devinfo *devinfo)
/* Scan associations skipping as=0. */
cnt = 0;
- for (j = 1; j < 16; j++) {
+ for (j = 1; j < 16 && cnt < max; j++) {
first = 16;
hpredir = 0;
for (i = devinfo->startnode; i < devinfo->endnode; i++) {