|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH] intel-hda: fix stream search |
Date: | Wed, 02 Nov 2011 07:55:50 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Thunderbird/3.1.13 |
On 11/02/2011 06:56 AM, Gerd Hoffmann wrote:
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<address@hidden>
Applied. Thanks. Regards, Anthony Liguori
--- hw/intel-hda.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/intel-hda.c b/hw/intel-hda.c index 675b659..b7ec36d 100644 --- a/hw/intel-hda.c +++ b/hw/intel-hda.c @@ -401,7 +401,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) {
[Prev in Thread] | Current Thread | [Next in Thread] |