Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp668524rwd; Wed, 14 Jun 2023 23:50:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5J8nooCmpJTpmytMIDQul0qODSn1Sk7GcCBTVtm2Nld+JIARA+Z0+eUuj9eucOyBzqebYM X-Received: by 2002:a17:907:3f82:b0:97a:e496:c121 with SMTP id hr2-20020a1709073f8200b0097ae496c121mr17536197ejc.69.1686811824664; Wed, 14 Jun 2023 23:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686811824; cv=none; d=google.com; s=arc-20160816; b=uxWptZtMaVg2C39GRjYdteGWoSlQbPCZ32h+ObAG8ud+eDP83kU+EFClG5FTk83cWw VFDXdKvod7ZlWJk2POohy3KqAFUupB1i07G7nWXahtreZ4JthnfnF0XpGbjqyFE8Dhdi 3br7XYOiAEpqWfl24yUuT/sWK/28vYrJXWYEMnWgYdVhL3DOiba1cssruODHey9RO4e5 AHO6We5VIUjHjupwz5TbKCOSgWdhLfueh7nuhAuJmw3UUrNR9EMsk1F4hQ+AvVuqgqLS SaeH9TLnyg2udaD0ugjuqdAAzOxoUTUQxtEZspcxuMDAirx5Etktx+no/7+aM0D78BUV 0CTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=Ft/zj4ilzEumTWLpEQ07nLe+sIIdIKTeXHm4HA2N188=; b=UmhGz93SEg4yYAQ9XCncphV8Waxc03fUkBp4KHLrNnYG8Uy7nFqN1Y00vzaPRAEpuv 9oJBtNCJ7b8YHio1e0srf7TAxxvVVFULgl7ePj18JadIJc/C1ggtE4ki8jhCKu4sokpn XhlNmwdv6vIkkw4WEP4pcMJNgNTJQIiu1WHI5tMXxRCnmcBYH+riL710/g6BqBZM1+tP jsco5vw31XlvDZWYD6xhWOt8NrJiOSAsmQwM4sR4MTI4iGfTqYJ1ypM31cohN31u6xUm 9ngDoTlYLAEUbMI1FqEqjm4yclPv57ydlhAQW7vRW+M1kEOA/IVjAcFRzk/loXnwg9wh CNag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="17hpmG/M"; dkim=neutral (no key) header.i=@suse.de header.b=sZitHZ+Z; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ka22-20020a170907991600b00977d0db2c6asi8926965ejc.63.2023.06.14.23.49.58; Wed, 14 Jun 2023 23:50:24 -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=@suse.de header.s=susede2_rsa header.b="17hpmG/M"; dkim=neutral (no key) header.i=@suse.de header.b=sZitHZ+Z; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244231AbjFOGoB (ORCPT + 99 others); Thu, 15 Jun 2023 02:44:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244127AbjFOGnT (ORCPT ); Thu, 15 Jun 2023 02:43:19 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB44926A8; Wed, 14 Jun 2023 23:41:54 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 59FCC1F381; Thu, 15 Jun 2023 06:41:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1686811313; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ft/zj4ilzEumTWLpEQ07nLe+sIIdIKTeXHm4HA2N188=; b=17hpmG/Maa7k+KgeOcBx2Qx6wOPTd9n9rIMnpJNKnxLDW00TA6tw8GbwgCDwMxvj79LO/T tHobk0dCZEbtSR1g7jLCIFiJFSWvmW30QMYq38dqqB/qmz0Yo7adaLr/V/pAWNivyKVp9M 75q7VDLJ2KLfDZ1WZu4LJR7Lm7ntpbo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1686811313; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ft/zj4ilzEumTWLpEQ07nLe+sIIdIKTeXHm4HA2N188=; b=sZitHZ+ZzbnztOhMC8NH8z4v1JHREWOq2w+ssNFnk6QfFeJFf8rdYCt0+VgX31Y9Jph5IF PvUh+e1jO3DriiCw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1B68B13467; Thu, 15 Jun 2023 06:41:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id /rG8BbGyimS9eAAAMHmgww (envelope-from ); Thu, 15 Jun 2023 06:41:53 +0000 Date: Thu, 15 Jun 2023 08:41:52 +0200 Message-ID: <87r0qd8bwv.wl-tiwai@suse.de> From: Takashi Iwai To: Su Hui Cc: Jaroslav Kysela , Takashi Iwai , Arnd Bergmann , maciej.szmigiero@oracle.com, yangyingliang@huawei.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] ALSA: ac97: Fix possible NULL dereference in snd_ac97_mixer In-Reply-To: <20230615021732.1972194-1-suhui@nfschina.com> References: <20230615021732.1972194-1-suhui@nfschina.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 On Thu, 15 Jun 2023 04:17:32 +0200, Su Hui wrote: > > smatch error: > sound/pci/ac97/ac97_codec.c:2354 snd_ac97_mixer() error: > we previously assumed 'rac97' could be null (see line 2072) > > remove redundant assignment, return error if rac97 is NULL. > > Fixes: da3cec35dd3c ("ALSA: Kill snd_assert() in sound/pci/*") > Signed-off-by: Su Hui Thanks, applied. Takashi