Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2285852pxp; Mon, 21 Mar 2022 15:55:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyZpSsuCBPJt+0OsRnAKvTGBjIJrhvkNoUMakiWbSZdk8cGq5BQ5eSpVjQd45DPcl1gaBK X-Received: by 2002:a17:903:2411:b0:151:8304:6936 with SMTP id e17-20020a170903241100b0015183046936mr14572033plo.134.1647903310559; Mon, 21 Mar 2022 15:55:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647903310; cv=none; d=google.com; s=arc-20160816; b=0tXhGrju+ojbuKsVogwz3uD53qa2xsWetVhwpgztV6/BxeSS5Njmq0zJCzdArCL1O/ 4ZFqXSVgIbrkjhHDLkSZx1wmAvrKbfkaSmz0OZPvbXY4NckBrPl6N/0PONtS7CiU3UoR ztYzcIiNY7as+nTEXnGpXet6ubWA+zXdXl1sVDhX4/v8i0mS0SNrTITJPk7nuf+YMCJx w5hIzuvKp9ok7FLgh0bLQVJ3nfk4Bn0PmwiEB8ppFG7lNmQ2KWjBQj8kNiYH6aD23ecF EJAGPL6IIM8CwkHlW7qbS96cNz/SHUNJsjoWXpS6UQtKL6C8fF2xtYKQyN7w1RLS8jJ9 stDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xBJRgrM679+/JjxLGR3nmTFCym20HMB6VhWhqGNgFiM=; b=JRB0O6RaXUEtcoKN7fZkBmJ5omZbyFErmUe/oFPkCFpfkp5i+c0r9R7wWY2G1CI1lu aEh119JzhnDmy+K3fsbae7eNfTaEsJlbkenmGi7U5CCwkt32ceS3M+/R1sBwES4oULgr c85q7deymYJlNRcYbJmPsh+FA7ikdY+uX0vtHHibLSL8l58PBpC0p+/of5OZgLdIxacj 7mt3Y9E3KN7fDD1Cyga4wg1G6YyI/lZflW8hDQW3Gq+aHTlwPMECCOB6eGvdJ1O+U4NJ bHk82vBkBMdKxRUdIDdsYjDM2gFnk1LKdP/dncO4hxGASAWpXNMGP+5/hyOYUGm/g8Le Y6RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PG4fWDOF; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m3-20020a654c83000000b003816043ee4csi14593992pgt.65.2022.03.21.15.55.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:55:10 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PG4fWDOF; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A9C31358BFC; Mon, 21 Mar 2022 15:05:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352265AbiCUSkr (ORCPT + 99 others); Mon, 21 Mar 2022 14:40:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352262AbiCUSkq (ORCPT ); Mon, 21 Mar 2022 14:40:46 -0400 Received: from mail-ua1-x936.google.com (mail-ua1-x936.google.com [IPv6:2607:f8b0:4864:20::936]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66D18A145B for ; Mon, 21 Mar 2022 11:39:20 -0700 (PDT) Received: by mail-ua1-x936.google.com with SMTP id a20so6112145uaq.11 for ; Mon, 21 Mar 2022 11:39:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xBJRgrM679+/JjxLGR3nmTFCym20HMB6VhWhqGNgFiM=; b=PG4fWDOFfqEb1cwl16UhzR8soGx/W8RjDVStZmUeC4FwIcYryWXGxnsdv1Ow9axY81 bxpnYdM6gvQoBzNfVHavE9RJ1rhzFY2bgdrKXZM67pk8Cm6GWQge196yxugatGSxluhc ITwHb1hO57OAmG/YExVgnAIJ21FiLIY86ZccvhKPOzXF+jsPz7MsvfQxX3bdZJp4ddMG ykDG5QDX759NXwK48Xbtaq2qGrKySqxWtnm7zSrLhHI0FqtSw7u+ErnKRKfX5Bn+DFmO LpZCrNKSHBbnxgRXX+X6N9B5G+Ssyt+hkwScD970Y/M0mvpS2g0X2FGTaJaCAzcU4xPe 5b6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xBJRgrM679+/JjxLGR3nmTFCym20HMB6VhWhqGNgFiM=; b=0lEzB1R8moZTL6ntm9wUr9uQ+MjNtPaJ9lmb0+3SMzsmzstgi0LNm/t3c+EuoIUdxE yTUWGcLW7BFbYT34uTx2WTmC6nfnFyWIEJxNyz/d4Zxe6tyBkkXbo9HPZksFbDnaZ9UJ qemp5v4w/sT/7hQEPfh/XAK0c/kg8kTG1IuyzvJ6cp2pYXoftdrRpX0ZpbIhzGU9dlJ/ xpAUYm354Esw2vo9y702t4sb+falEtoA62zGeTPivRBNlQJ1AqT6DZFKztfPPaT4+Xyx sG9B4HQpCtfmf5rQ7BCkbArt7Hyk4EgsJ9oUT9k8eB+nwA8OzfB9N2RDQ/MxS77EflsX tKFQ== X-Gm-Message-State: AOAM532Kud2sl/h3FOQJNrXsyxga/K1YOgXkftcVsmyggezFFLqDGHgB bRjFJ1Hi7o7NGTEcGm+YVxqpa+1Crf3L1pGKSlU= X-Received: by 2002:ab0:20d6:0:b0:356:9691:c3a4 with SMTP id z22-20020ab020d6000000b003569691c3a4mr2966622ual.116.1647887959449; Mon, 21 Mar 2022 11:39:19 -0700 (PDT) MIME-Version: 1.0 References: <20220321123626.3068639-1-jakobkoschel@gmail.com> In-Reply-To: <20220321123626.3068639-1-jakobkoschel@gmail.com> From: Vaibhav Agarwal Date: Tue, 22 Mar 2022 00:08:43 +0530 Message-ID: Subject: Re: [PATCH] staging: greybus: codecs: fix type confusion of list iterator variable To: Jakob Koschel Cc: open list , "moderated list:GREYBUS SUBSYSTEM" , linux-staging@lists.linux.dev, Mark Greer , Johan Hovold , Alex Elder , Greg Kroah-Hartman , Mike Rapoport , Brian Johannesmeyer , Cristiano Giuffrida , "Bos, H.J." Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Mon, Mar 21, 2022 at 6:07 PM Jakob Koschel wrote: > > 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") > Signed-off-by: Jakob Koschel > --- > 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 b589cf6b1d03..e19b91e7a72e 100644 > --- a/drivers/staging/greybus/audio_codec.c > +++ b/drivers/staging/greybus/audio_codec.c > @@ -599,8 +599,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; > } > > base-commit: f443e374ae131c168a065ea1748feac6b2e76613 Reviewed-by: Vaibhav Agarwal > -- > 2.25.1