Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp611405iog; Mon, 13 Jun 2022 09:07:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTVb3yjQRvO2JHvSBce32K+HFNrsiNIJjDKq/xj8hJi88sYJSJ2AP4foxPKIocCn/rn9b5 X-Received: by 2002:aa7:d8d8:0:b0:42d:dbb0:f05b with SMTP id k24-20020aa7d8d8000000b0042ddbb0f05bmr526831eds.82.1655136452537; Mon, 13 Jun 2022 09:07:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655136452; cv=none; d=google.com; s=arc-20160816; b=Ik6qFRT0mJhHTm3ncAWujLNpO1g7s+kBi3EkdTM/ezBihW2elIpJTcTO1KG52+Pfs8 Gya/nYjvr8Er/qV1DMIk8YUYg/k3iepw+MlFI0joH05E7zj3ZtbOurcViCsuXDQC7rTo mxCYvBBFSSZE+ZlbjLHawii3beRZK1TSayLk/M1gsoPGS2R95lXDveAvOfOs3S4ak/v+ knqTzaff3NIMoyaztL1z09+Ov0+kX+lyPut7i2fc0WhTYCgFr+rNyailWYLtt8zgdOuc T+CsN5eBOTy3sV6Dcw2G4mmWFYrAQ1ITnvP9qxnmX31MN2vRYeosw4myZ1GMZUdGYnqB WLMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mvGnx5DVbGWv6XpQ34iWKtBMAvaoXkG5X6YHud5MAac=; b=VcsYUmtSN9QiDG8uM290WO+GVs85kLDPB68ssJVJw1UgcacaixmqWyh3HU5FEp2hMC Oue4R0/7m+nV+6et6VbHoc14lge4k7kdc7tiBgkUiBMTtNJT3s3KsOz3BqVVu42eDK4w mluMOYlJU0GwxWte2KAco99mpe7KeIG7D+oHlZW9ed5ESHfu7iWSc2najUPZ8vP/ZIOT zhFktpuJ+I2NiKZfRYDpn8C29Co9EQBQV1jtmPlwqwZrzcW119/xDXpFGqk8orDazbsy BBSlSf7VJjsq2GpuK+TJxtbZYqug4X2/T7uM6v3nxfaBKN4a4XAFP0pWfoMewmnlOPiM qvRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dq4130ID; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z27-20020a17090674db00b00711ca15cd1dsi7359229ejl.180.2022.06.13.09.07.03; Mon, 13 Jun 2022 09:07:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dq4130ID; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351429AbiFMLEI (ORCPT + 99 others); Mon, 13 Jun 2022 07:04:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350108AbiFMKym (ORCPT ); Mon, 13 Jun 2022 06:54:42 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1265324973; Mon, 13 Jun 2022 03:29:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C929EB80E90; Mon, 13 Jun 2022 10:29:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C719C34114; Mon, 13 Jun 2022 10:29:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655116154; bh=OgzNXn9V2D8oWMq0xBSCnLfTHh79dds4LETS7SboQII=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dq4130IDXA5NyG6V89zoQVqMKRBX40DAvpx0ktwFlF19CI6TbyhMPTy/0pSi38iFn /J0yveEyGbEfh3GxIyD5HSIxGHt3zSQQKiR8etIbUa3R6+0cGGKjhY2M0KhegX3A1l rIbvsI+wzmDvZYrOcI2PYhdcdyHlVFgmIRfQ6m34= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Vaibhav Agarwal , Mark Greer , Jakob Koschel , Sasha Levin Subject: [PATCH 4.14 141/218] staging: greybus: codecs: fix type confusion of list iterator variable Date: Mon, 13 Jun 2022 12:09:59 +0200 Message-Id: <20220613094924.865959200@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094908.257446132@linuxfoundation.org> References: <20220613094908.257446132@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jakob Koschel [ Upstream commit 84ef256550196bc06e6849a34224c998b45bd557 ] If the list does not exit early then data == NULL and 'module' does not point to a valid list element. Using 'module' in such a case is not valid and was therefore removed. Fixes: 6dd67645f22c ("greybus: audio: Use single codec driver registration") Reviewed-by: Dan Carpenter Reviewed-by: Vaibhav Agarwal Reviewed-by: Mark Greer Signed-off-by: Jakob Koschel Link: https://lore.kernel.org/r/20220321123626.3068639-1-jakobkoschel@gmail.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/staging/greybus/audio_codec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c index 6ba5a34fcdf2..2e9ec3fe442b 100644 --- a/drivers/staging/greybus/audio_codec.c +++ b/drivers/staging/greybus/audio_codec.c @@ -622,8 +622,8 @@ static int gbcodec_mute_stream(struct snd_soc_dai *dai, int mute, int stream) break; } if (!data) { - dev_err(dai->dev, "%s:%s DATA connection missing\n", - dai->name, module->name); + dev_err(dai->dev, "%s DATA connection missing\n", + dai->name); mutex_unlock(&codec->lock); return -ENODEV; } -- 2.35.1