Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5262219rwb; Mon, 14 Nov 2022 01:41:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf4tcQrvt5NXiguMOOUXRzyVc8IS9ekXDiwVlX6BqI2tezqpADTVA8vYHZfJTeYGOILP71+F X-Received: by 2002:a17:906:68d8:b0:78d:e786:e322 with SMTP id y24-20020a17090668d800b0078de786e322mr9369927ejr.308.1668418880523; Mon, 14 Nov 2022 01:41:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668418880; cv=none; d=google.com; s=arc-20160816; b=Ahsb40rFS9ngiJgs+KJfCmXBgKkD9A4DscQuvqXxJxgFabEEu92JWeVeH8cnFzuITA 16PsRFzCmksGYZAKFpD8ieypj2oInX/i4hVUwaLEMTiAuk0JrWpA3rPYrrN0+TSz95Pg yCSMapQ7frsSabxhYeiwk1KYFpbJzp158KlhJGS5jt9ba5i1r97i5NnXgDQXLrabhZUF Cn/QnnAiHdyhR5r5MXBSI9LVECR7F9Yih4+TFJLmgmx+q/QK2MmAPiX8TUUPYPR8tCEs 06VS9RaxraUrLF7U2ChsMXjvz/iINJAyb3csZVK2NFG9/Tga2oM+9LEonLQMLiWRXo7X Sqfw== 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=2kpCoTStDLbC0mDpL36oNJqRAWBqkoojNVraAyspOWw=; b=kZxpwAAzhJyeMomRBeaxqgdA9LyGKZQQtsYt/cyJ6uIJVGg2OkqE0T7us1/rrWM96j GmK6vlRQSgjQCLDbQ9XHsVTXgUxhvyq14o1rneSCrg8nfsX+dZmcYE5NVtehr/7a3fON rhvjTcRuaLPxGQm/yhQ4Tyu9ry+6fNu6Wcg6VRfQtiv15ueJTXQJiuM8irUx4+Vod5Qj GupsUhksr0EBJYaKYIJ5SGCbEytb0f8hDA+x0mZ0E1JxNB/MBiSuwpExrNlG1T/IhHB7 dw1HjV/bJQk2BBbzVfZJMs7Egb7+4fm6AK2Rqas0awYQdRzb7rIGSvpmiMvm07Fm6suD MEAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=J+87jFaZ; dkim=neutral (no key) header.i=@suse.de; 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 ss17-20020a170907c01100b007ac9a51342asi7276106ejc.188.2022.11.14.01.40.58; Mon, 14 Nov 2022 01:41:20 -0800 (PST) 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=J+87jFaZ; dkim=neutral (no key) header.i=@suse.de; 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 S236311AbiKNIzM (ORCPT + 88 others); Mon, 14 Nov 2022 03:55:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235456AbiKNIyw (ORCPT ); Mon, 14 Nov 2022 03:54:52 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 349531C401 for ; Mon, 14 Nov 2022 00:54:52 -0800 (PST) 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-out1.suse.de (Postfix) with ESMTPS id E860622874; Mon, 14 Nov 2022 08:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1668416090; 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=2kpCoTStDLbC0mDpL36oNJqRAWBqkoojNVraAyspOWw=; b=J+87jFaZ7xCpG3IxH9cRl+30Ilvlt1Af69iuLmO0AQG8bwdgDcHCeDog+BQ6qAuwTwMrz/ KTDa4QilSwTlygiH0PeTcvhRIwVvMx/0zO8yNWrRbaapdlxA0C3/IouqpYFzeYjHiFX5vK 19fJKUeVk7qeYY7Ka5poQdIomQCOVmw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1668416090; 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=2kpCoTStDLbC0mDpL36oNJqRAWBqkoojNVraAyspOWw=; b=fD80/1FtpAS7P8XmNfXh4Jryy6XUJR53Iu+SPwvjaUoTQ9zgiL1H2jHajKPta3DCcf2Yyl no6iQbUeqkCyO5Cw== 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 A17D813A8C; Mon, 14 Nov 2022 08:54:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id FZJFJloCcmMkLwAAMHmgww (envelope-from ); Mon, 14 Nov 2022 08:54:50 +0000 Date: Mon, 14 Nov 2022 09:54:50 +0100 Message-ID: <87o7t9531h.wl-tiwai@suse.de> From: Takashi Iwai To: Daniil Tatianin Cc: Jaroslav Kysela , Takashi Iwai , Tim Crawford , Stefan Binding , Kai-Heng Feng , Meng Tang , Lucas Tanure , Philipp Jungkamp , Werner Sembach , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org, yc-core@yandex-team.ru Subject: Re: [PATCH v1] sound/pci/hda/patch_realtek: don't call alc_shutup_pins without a spec In-Reply-To: References: <20221114082048.3477027-1-d-tatianin@yandex-team.ru> <87r0y63psf.wl-tiwai@suse.de> 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 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 Mon, 14 Nov 2022 09:35:10 +0100, Daniil Tatianin wrote: > > > > On 11/14/22 11:26 AM, Takashi Iwai wrote: > > On Mon, 14 Nov 2022 09:20:48 +0100, > > Daniil Tatianin wrote: > >> > >> alc_shutup_pins always expects the spec to be present, so make sure > >> it is before we call it. > >> > >> Found by Linux Verification Center (linuxtesting.org) with the SVACE > >> static analysis tool. > >> > >> Signed-off-by: Daniil Tatianin > > > > In which path can it be without spec assigned? > > That's the internal callback that is set only by the codec driver > > where the allocation of codec->spec is mandatory. > > Would you then say that the "if (spec && ...)" that was there before > was redundant? Yes. Takashi