Received: by 10.192.165.148 with SMTP id m20csp4185176imm; Mon, 30 Apr 2018 13:25:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpl2PSPqEGItfdeDhHUX/bDgxM3hS7ouSpU1+XUO6yB6QE6aeVMLI2ZWXtIQCNIA6xdIXdc X-Received: by 2002:a17:902:1681:: with SMTP id h1-v6mr13596436plh.145.1525119926241; Mon, 30 Apr 2018 13:25:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525119926; cv=none; d=google.com; s=arc-20160816; b=w7kWMl07SFD3e5nHwzp4q9icBCFpcA/k+qsmciHIIG1bh/tp6Jl0unbF7/IASOq5Q5 UMkwEVHSIFkHjm+2fbzcv7XXd4zPpwONAg8qcv4hmcR23mM+sVvaiLnCcYyVvSb9GJVs S6RwlvYIosRKvTd+M6SXnyD+PTMxRAF07VystvyToYQ/p9A1OCW0pc87wPAI1eDn66dx q4Zh5n8CyUIwqezgDc/x7uAsBGG1j43JPOFY9SAKXsXe+QED+/OBgZfusyIYZ1wJGv7U nmcKARGDD4Z7/yMRb0GKZs1I2ochr5l4vEB2aB1TdG81yNGGDf1EAtQk47KEZ23zQm/U p8rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dmarc-filter :arc-authentication-results; bh=9RejAdIbHinWIJRcrhgXnNcLo9uNpWwl+u7liFRxaxU=; b=aHZvoMlUxduL6bLQ2xMWFoeB/+YKTQz/5eS9ESlS7wCX6n8Q2wZOyLiBr43RjPaFbd ODuZFj4ZOGNJGyyWwDnoe05uka0cC5cWJWAMs0GcjAsa+/mtze9OfX6x/EQ3mlLSiNhX Wz9yvdS9HyQBndi1leHyvk+jvohGXWiUiXkQx4QetAHQpfRVz+EN4bqodkd0ADDgLbl3 8JzAGvw11vDNHIMaSDp6upXhgdWl2N/RfbP/FMrtQ6vIL13i4OYTx2X1J3Clx71wSQQq dcMsycqSX59KvPymiNXc5YfI7CZC9feuo4P/n+vM2hNZTtHs55/GlGgS9xJQni7G4QfU 85Yw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8-v6si8037005plo.306.2018.04.30.13.25.12; Mon, 30 Apr 2018 13:25:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755673AbeD3T0b (ORCPT + 99 others); Mon, 30 Apr 2018 15:26:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:60102 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755584AbeD3T00 (ORCPT ); Mon, 30 Apr 2018 15:26:26 -0400 Received: from localhost (unknown [104.132.1.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DB1DB22DC9; Mon, 30 Apr 2018 19:26:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DB1DB22DC9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=gregkh@linuxfoundation.org From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Sakamoto , Takashi Iwai Subject: [PATCH 4.9 25/61] ALSA: dice: fix error path to destroy initialized stream data Date: Mon, 30 Apr 2018 12:24:28 -0700 Message-Id: <20180430183953.482836014@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180430183951.312721450@linuxfoundation.org> References: <20180430183951.312721450@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Takashi Sakamoto commit 0f925660a7bc49b269c163249a5d06da3a0c7b0a upstream. In error path of snd_dice_stream_init_duplex(), stream data for incoming packet can be left to be initialized. This commit fixes it. Fixes: 436b5abe2224 ('ALSA: dice: handle whole available isochronous streams') Cc: # v4.6+ Signed-off-by: Takashi Sakamoto Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/firewire/dice/dice-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/firewire/dice/dice-stream.c +++ b/sound/firewire/dice/dice-stream.c @@ -425,7 +425,7 @@ int snd_dice_stream_init_duplex(struct s err = init_stream(dice, AMDTP_IN_STREAM, i); if (err < 0) { for (; i >= 0; i--) - destroy_stream(dice, AMDTP_OUT_STREAM, i); + destroy_stream(dice, AMDTP_IN_STREAM, i); goto end; } }