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 43620C32772 for ; Tue, 23 Aug 2022 15:02:36 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 8C46115C2; Tue, 23 Aug 2022 17:01:44 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8C46115C2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1661266954; bh=+1G5vRl6l9UePk1DUv/K0xiTKh0ydErVAmQPGAdxM08=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=N53PKLn3SjBWcx/hRR/yxVXElRx6DYWG/DVE2Dlx0QYpatOS3GBJYloh5+4Crf5Y0 r+oYMc1xT2DiiSd9SWOsmkii499Z3ieuuNGKzKdcwSG1fV1zxXtG42Lx0lu55YPJBs kWApXnj3vBIaJIZ9jkaJJTI55fIM9mrzvIvO1n3c= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 19CCEF8020D; Tue, 23 Aug 2022 17:01:44 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 35AF5F8027B; Tue, 23 Aug 2022 17:01:42 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 24C73F800C9 for ; Tue, 23 Aug 2022 17:01:34 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 24C73F800C9 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="oxVX3+Rf"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="HKNslVwE" 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 909081F9D6; Tue, 23 Aug 2022 15:01:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1661266894; 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=mLCSh+ij84vDdSTVmDSZGiNWGdfk1PbmyUnbWqCazRs=; b=oxVX3+RfOvqfIj5vS82s3MkDrC3cRmXZU9gDEMQr22HpjpVMbE124TPnPCzP6i7UAdgYPU 8oeSwmQFIWWlM7yvgArW5uk+bgVbUX1riNVcoPYMKX+CWLmcgRj0K6Cu9TZDTGm7pggqIn +kR8Q6pD2Pk9mJyXrg+acN2+mcEusKI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1661266894; 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=mLCSh+ij84vDdSTVmDSZGiNWGdfk1PbmyUnbWqCazRs=; b=HKNslVwEAqzHlNuPUzd9wdjxSAhyUc2eI02K1q+HWzHIXcBktR+J2ZaHO2MoEvAV41T7Fy KsMwNmctryzAITCQ== 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 566B713A89; Tue, 23 Aug 2022 15:01:34 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id kHjfE87rBGOhEQAAMHmgww (envelope-from ); Tue, 23 Aug 2022 15:01:34 +0000 Date: Tue, 23 Aug 2022 17:01:33 +0200 Message-ID: <87o7wbovg2.wl-tiwai@suse.de> From: Takashi Iwai To: Peter Ujfalusi Subject: Re: [PATCH] ALSA: hda: intel-nhlt: Correct the handling of fmt_config flexible array In-Reply-To: <20220823122405.18464-1-peter.ujfalusi@linux.intel.com> References: <20220823122405.18464-1-peter.ujfalusi@linux.intel.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 Cc: alsa-devel@alsa-project.org, tiwai@suse.com, jaska.uimonen@linux.intel.com, pierre-louis.bossart@linux.intel.com X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Tue, 23 Aug 2022 14:24:05 +0200, Peter Ujfalusi wrote: > > The struct nhlt_format's fmt_config is a flexible array, it must not be > used as normal array. > When moving to the next nhlt_fmt_cfg we need to take into account the data > behind the ->config.caps (indicated by ->config.size). > > Fixes: a864e8f159b13 ("ALSA: hda: intel-nhlt: verify config type") > Signed-off-by: Peter Ujfalusi > Reviewed-by: Pierre-Louis Bossart > Reviewed-by: Jaska Uimonen Thanks, applied now. Takashi