Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp755597pxp; Fri, 11 Mar 2022 14:16:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4l8xw7GrElopVqdIjNdaUVsfRehH7tppGd3k8dsgMfGFYMjRLER1hAh24gia9UsK5Pn/y X-Received: by 2002:a62:18cc:0:b0:4f6:fdff:5440 with SMTP id 195-20020a6218cc000000b004f6fdff5440mr12279295pfy.35.1647037001951; Fri, 11 Mar 2022 14:16:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647037001; cv=none; d=google.com; s=arc-20160816; b=Fgw0F74NkKiA/DHyxEEJ/d/jpXhb5eU3NugjdLj9bDGn4VISPJXMNPMYd8UANsSG86 0ocROK4fsF8fE3jLQHVIhGcyTdT8oAwii3A4LrddkPtm9lTwljlRX8XucvmAhbJeJpYm 5YddUC6Ob4iBGeN8edo7rV3a7KxSdjfzS6vHpjGkeUXWwtnPOc2cbsiRY9T0hZJ7sfQ3 nSyHHQaeoP+h7jeCtEv7tAgRDR5+Mggzqh1LkM0zsXnY/0WX9DtOj4lvqvPoKbR282/m 5SiPh7f+Eh8YUWqeP/rh48P/BKMg2BT5mvkUfWVmeuGRJDmDrEbRm5mw1J8uTj4cYGM5 PoWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=b4QiXZG/thFbq+m+ebbSVj3W8CFNFrkYYo6odJwuMpU=; b=kb8V/BOB+po6rQmiSZDhbHfJ6MRUHm2n6i1nMdBBHF+mmbGafyyLT5jlY5n5tJjgLz VmZHQZF/ODZwoWU6jWr1lLXlhq3dMCdHSDJpj1GpIWxP4WRVlBYCBn9YniZL4pkTH/le Gvgy0BhxiByHgJYBwn21DjtjFeLVK1uNCASRwMCv40qYTp9qSqRNgxZLXDdNluLlV24I qQ4iNFM1652NLEvBwWll3Osja/PE+EUPv1XiuZtoaHu3ag1IpvqZMNRgrfRcQMejQYhE eZdsmis7XMcl6u0pgsjoz4bCM9ptkHsFWnyBtgG5wuJzCHP/t0uB28fEF7/Yad7KXS4T ZaqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=Dgzd+bcR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k8-20020a170902c40800b001530191b272si9983810plk.1.2022.03.11.14.16.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 14:16:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=Dgzd+bcR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5210928BA6F; Fri, 11 Mar 2022 13:26:11 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350105AbiCKPzr (ORCPT + 99 others); Fri, 11 Mar 2022 10:55:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350043AbiCKPzJ (ORCPT ); Fri, 11 Mar 2022 10:55:09 -0500 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEF6414A6C5 for ; Fri, 11 Mar 2022 07:53:44 -0800 (PST) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 22BEUCEe002318; Fri, 11 Mar 2022 09:53:17 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=PODMain02222019; bh=b4QiXZG/thFbq+m+ebbSVj3W8CFNFrkYYo6odJwuMpU=; b=Dgzd+bcRFHeUaVhrEEADbqve57F45PV/SeoPl8kkk1j98OTVkeDXWX/2YJSN9r6z6jMs IUlq2UqLux+UcrgWamyy+CIvk7IzahF7OdyO/9bZqDzJExcgeg5hDEOaZ2wIgHCygDD8 S0pmXuKwXU2DPzjoLAerSJYEXMU2Z2ILqacDh3J02LH2yVo6jdVX16dT/uNHSfaUr3P7 eJ2kZzcv5kFd4Jg/zQktr1C+f8MT2JUDnbzXGneM1nmmiPDB5blOLaRcCuaZa83477MU IgJWIVz2KCHijgeYHvZzGk7VnRTEpEHWWRA9AIXKVAXE9BoSAS0VKen8qUN5KgJRLX2v uw== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3em656rq8w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 11 Mar 2022 09:53:16 -0600 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Fri, 11 Mar 2022 15:53:15 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.2375.18 via Frontend Transport; Fri, 11 Mar 2022 15:53:14 +0000 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id E5451B1A; Fri, 11 Mar 2022 15:53:14 +0000 (UTC) Date: Fri, 11 Mar 2022 15:53:14 +0000 From: Charles Keepax To: Jiasheng Jiang CC: , , , , , , , , kernel test robot Subject: Re: [PATCH] ASoC: soc-compress: Change the check for codec_dai Message-ID: <20220311155314.GK38351@ediswmail.ad.cirrus.com> References: <20220310030041.1556323-1-jiasheng@iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220310030041.1556323-1-jiasheng@iscas.ac.cn> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-ORIG-GUID: k6M34B6HZjYCISxFO619goEskfvufoYP X-Proofpoint-GUID: k6M34B6HZjYCISxFO619goEskfvufoYP X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 Thu, Mar 10, 2022 at 11:00:41AM +0800, Jiasheng Jiang wrote: > It should be better to reverse the check on codec_dai > and returned early in order to be easier to understand. > > Fixes: de2c6f98817f ("ASoC: soc-compress: prevent the potentially use of null pointer") > Reported-by: kernel test robot > Reported-by: Dan Carpenter > Signed-off-by: Jiasheng Jiang > --- Reviewed-by: Charles Keepax Thanks, Charles