From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 38DD1C54E76 for ; Tue, 17 Jan 2023 17:03:47 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id DC9296AC2; Tue, 17 Jan 2023 18:02:55 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DC9296AC2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1673975025; bh=JH18ymrUNbi3NNFjBsH7BzpxX6JV6DwjrPOxNrX/Qew=; h=Date:From:To:Subject:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=c/CPSAoftb6NpgTmpO/0ENZMkFS70INDIkb63eQNuv9P24LloTov0Qv4b/UN//q7p 3QZAOYMVJ7W6untiaSMc2k14vRtrpt27HqgSgfKBYQzRbt7/U5q62gQ7otuU/esH08 BcINI12RLVJ5xDuxhfET9SUBCeROL7WHo/BeUpbs= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 9528EF8026D; Tue, 17 Jan 2023 18:02:55 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 750BCF8047B; Tue, 17 Jan 2023 18:02:54 +0100 (CET) Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 733A9F80083 for ; Tue, 17 Jan 2023 18:02:51 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 733A9F80083 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=nw9DcXJW; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=BW0IV6v6 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 A6B6B350EE; Tue, 17 Jan 2023 17:02:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1673974971; 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=+HroE0F+Kjq6X2kesp5XmlL8qX+yrEdOJBtBkx0WFcU=; b=nw9DcXJW0NCENVVchK1ky67hFZfAqzifdodFHAAob51Z8Dw4iKe22Yg4wVHKpWsXaLwIqL uce5pni+6cL6VcxcRs2PJ6k6EQyKIVCKQX//xaoisuAXWwpJlQQD9brkZuICdPRVCYogin Cd4zIYLi7gWb7eEcw49w93GJDIGQFVs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1673974971; 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=+HroE0F+Kjq6X2kesp5XmlL8qX+yrEdOJBtBkx0WFcU=; b=BW0IV6v6EScpkzztGpN1+tLiaGHg8OSHcQs+T+Ubneyhwq8FLI021XUDjR5NwGIYtyx3d1 3Ud3ohFLjqVjhICg== 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 7A4E01390C; Tue, 17 Jan 2023 17:02:51 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id GXvlHLvUxmOvAQAAMHmgww (envelope-from ); Tue, 17 Jan 2023 17:02:51 +0000 Date: Tue, 17 Jan 2023 18:02:50 +0100 Message-ID: <87zgah5c1x.wl-tiwai@suse.de> From: Takashi Iwai To: "Alexey V. Vissarionov" Subject: Re: [PATCH] ALSA: hda/ca0132: minor fix for allocation size In-Reply-To: <20230117111522.GA15213@altlinux.org> References: <20230117111522.GA15213@altlinux.org> 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-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alsa-devel@alsa-project.org, lvc-project@linuxtesting.org, Ian Minett , ye xingchen , Takashi Iwai , Xian Wang Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Tue, 17 Jan 2023 12:15:23 +0100, Alexey V. Vissarionov wrote: > > Although the "dma_chan" pointer occupies more or equal space compared > to "*dma_chan", the allocation size should use the size of variable > itself. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Fixes: 01ef7dbffb411d9d ("ALSA: hda - Update CA0132 codec to load DSP firmware binary") > Signed-off-by: Alexey V. Vissarionov Thanks, applied now. (BTW, the Fixes tag should have the commit ID in 12 chars. I corrected locally.) Takashi