Received: by 10.223.185.116 with SMTP id b49csp5467066wrg; Wed, 7 Mar 2018 12:15:25 -0800 (PST) X-Google-Smtp-Source: AG47ELsJCa1Qhrvce89LkT4pwua+d3m7s5XLr7PS7GarTTojN0uSDwqt9TKCq02LkjLESrXfEkL1 X-Received: by 2002:a17:902:8d90:: with SMTP id v16-v6mr13912597plo.168.1520453725748; Wed, 07 Mar 2018 12:15:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520453725; cv=none; d=google.com; s=arc-20160816; b=TcKWaMG1sO5lgBPHGj+3YApVw3BxWPIkDVkSVF2bi/uuxNgV/e8BrT4MEOE9AuRY3W AGEmxCtqJo781GjGM8wQv6J3V040HQEiYmmCas+pE44oC+EtRQFPrcgSeyXWPVoP/YLo ZtraXPHC5+r22+1Uk2+ogl7zW+oMrR076p0RhjYgXCegVD0uOwit5oFJxXz7v8EWaOFu fBj130mv04yd+Ba2A6ru6BHfemCHlhix5HkdGJryGhcA8sjv1XLITEAZPN3NBUqZwH/r gMQwZqmff63n+BlXOcV6MYb0j37Fl4qgq27yB+rLmLNPz7kxLJ4ZO4TlS7DkTYTcxw+P iKig== 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 :arc-authentication-results; bh=qe//PYxLKMQqgNJBZFtNQhmJWr2pOFMZXZGqniaK0NY=; b=aFlI+5SAB4WJIZ72OHz3/5chV0YMnyXezgvnkcbZ/ThuQ7bSXeRWqfAy7CpmzeW8Zx 2VfDbn1y+lekjCy+QaGno4it4rQf89Bjg7EjDjbXFQwPYn0qE2rVanihDVKY/zBXyjt/ R1VxH+A0+gfLzr9RDu6dbyaphTpWi8jpYmosmdGCdpAgS6ugiSs15Dmh2zO85OAltIoN 1Ou3oT6JcmVHQePD0+K5Mp8RGtqxxFrO7Ye91mOU3mAGQzW174hGxvYxk0YV7255EPHw LcqGJz2rhZHyRgDNKKjEPUoA6gf5ki414MZETf9bcE/IGYa1xoFrEC16FlhlQ8UZZVIJ zmWg== 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 o12-v6si6714910plk.449.2018.03.07.12.15.11; Wed, 07 Mar 2018 12:15:25 -0800 (PST) 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 S965198AbeCGTo6 (ORCPT + 99 others); Wed, 7 Mar 2018 14:44:58 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:43984 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965182AbeCGToy (ORCPT ); Wed, 7 Mar 2018 14:44:54 -0500 Received: from localhost (unknown [185.236.200.248]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 26EECF1E; Wed, 7 Mar 2018 19:44:54 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai Subject: [PATCH 4.14 012/110] ALSA: x86: Fix missing spinlock and mutex initializations Date: Wed, 7 Mar 2018 11:37:55 -0800 Message-Id: <20180307191041.291642482@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180307191039.748351103@linuxfoundation.org> References: <20180307191039.748351103@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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Takashi Iwai commit 350144069abf351c743d766b2fba9cb9b7cd32a1 upstream. The commit change for supporting the multiple ports moved involved some code shuffling, and there the initializations of spinlock and mutex in snd_intelhad object were dropped mistakenly. This patch adds the missing initializations again for each port. Fixes: b4eb0d522fcb ("ALSA: x86: Split snd_intelhad into card and PCM specific structures") Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/x86/intel_hdmi_audio.c | 2 ++ 1 file changed, 2 insertions(+) --- a/sound/x86/intel_hdmi_audio.c +++ b/sound/x86/intel_hdmi_audio.c @@ -1827,6 +1827,8 @@ static int hdmi_lpe_audio_probe(struct p ctx->port = port; ctx->pipe = -1; + spin_lock_init(&ctx->had_spinlock); + mutex_init(&ctx->mutex); INIT_WORK(&ctx->hdmi_audio_wq, had_audio_wq); ret = snd_pcm_new(card, INTEL_HAD, port, MAX_PB_STREAMS,