From: Gerd Hoffmann Date: Wed, 2 Nov 2011 11:56:14 +0000 (+0100) Subject: intel-hda: fix stream search X-Git-Tag: qemu-xen-4.2.0~182 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=18ebcc86f2e21c83efe26b09218c859234876465;p=qemu-xen.git intel-hda: fix stream search commit ba43d28916c4f51c19bd7366089155ce81bee058 introduces a bug: The stream-not-found case doesn't error out any more, instead the code silently uses the first stream. Fix it. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- diff --git a/hw/intel-hda.c b/hw/intel-hda.c index 02def4c1e1..10769e0f49 100644 --- a/hw/intel-hda.c +++ b/hw/intel-hda.c @@ -402,7 +402,7 @@ static bool intel_hda_xfer(HDACodecDevice *dev, uint32_t stnr, bool output, break; } } - if (st == NULL) { + if (s == 4) { return false; } if (st->bpl == NULL) {