Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1970661ima; Thu, 25 Oct 2018 07:45:08 -0700 (PDT) X-Google-Smtp-Source: AJdET5fpYfy4WAEIc1jAJqwNc7IBCG4i83i/1WcXx4osPuH9wYWGxhl6SGnHLgDDHdQ4qVAZUtMC X-Received: by 2002:a63:7219:: with SMTP id n25mr1767613pgc.324.1540478708110; Thu, 25 Oct 2018 07:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540478708; cv=none; d=google.com; s=arc-20160816; b=kw8fzPQSH+HYOnvV/ZFWPN75mA4bfqnm+2bvY50dCyqkwYenS3ufLTY/fzYxc9rGd9 IrqP/NcO8QU652SMXD/wADA2N0HfQWsDHt70k5q59Xj8h2CZSbS3dfaUSEy35bFZGPeX mVqzy7SP4yrpQGvbKGVhhj69Kg3CovjZ91Q9NTLCOAc9niUwg8hWNPKsb8V9u/Pv5sJa D3fX4xaYzxTHaU5O0y7lS4l5YGZuOVjY8DQF89WHJ4chA1gePDAKoYiKYDrl25JmiIBW Bbs9wSq8vkECtEkWCgh8sFCMolQD8IT2nh46hNR4GwY03061nuVuXGoq+Oo1ge+BCmAp +qJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=iB2kz6IaMyaa3J16z/eFubLtVfjVn0iN87vhW9wHo+w=; b=Dl1FzN4dPl/r6RKv/c3AkUY0mUl/llVw/nu/MJIt1ITGLIUO03ATZAupMgV8L53D4L VX3toKUvuSWFYcBT63kRx9xaTeKzTDV+m2CfmMcsLY+6BrU8lSwzBshod1SlOZ7HBqvz jAwDJraRnpCp3W+eEYvYr8EnIdmGw4oJWmLtM2dUbaPhDzBaONoRh5M5TluT+CFEAm1V ulSLxgFDYwHoxFMcET9j0GX+UtBPYLWHOb4mgapNIr9vNe4mlZDO7Bc6T4X/FvqoxGpl L55Qff5Z8aykUvPqn5ZBDAhYuoxw7DfRhU9DgrYrhejb7+6FJMsD+mbV0vbf6CCOK7BG NODg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sBqCWH7x; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15-v6si8473333pgr.336.2018.10.25.07.44.50; Thu, 25 Oct 2018 07:45:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sBqCWH7x; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728826AbeJYWsF (ORCPT + 99 others); Thu, 25 Oct 2018 18:48:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:56490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728494AbeJYWsF (ORCPT ); Thu, 25 Oct 2018 18:48:05 -0400 Received: from sasha-vm.mshome.net (unknown [167.98.65.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 89FCB20834; Thu, 25 Oct 2018 14:15:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540476908; bh=5Afv3zS4JqP/UqiI2CQgD83lzE06dD20br3jizt800o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sBqCWH7xgSS3msAOzDHEMDoZMSd5TxT0fT4BEk6c7I8kTooOJ181wcUVIcVhxN67V Icz1dey6ecqtOQrgvDomctp6NNo0SjF3BZzxfb6EQNupuLmseS9NtNhc9BoZGVh2So GW3Dm0WwCtCO8HmSiwDapWZAI0TBKoQweoXhySt0= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Shreyas NC , "Subhransu S . Prusty" , Mark Brown , Sasha Levin Subject: [PATCH AUTOSEL 4.9 29/98] ASoC: Intel: Skylake: Fix to parse consecutive string tkns in manifest Date: Thu, 25 Oct 2018 10:13:14 -0400 Message-Id: <20181025141423.213774-29-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025141423.213774-1-sashal@kernel.org> References: <20181025141423.213774-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shreyas NC [ Upstream commit 0a716776914ed9d7ca90b48041e6767693bfb672 ] Element size in the manifest should be updated for each token, so that the loop can parse all the string elements in the manifest. This was not happening when more than two string elements appear consecutively, as it is not updated with correct string element size. Fixed with this patch. Signed-off-by: Shreyas NC Signed-off-by: Subhransu S. Prusty Acked-by: Vinod Koul Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/skylake/skl-topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c index bef8a4546c12..b0c154d5924b 100644 --- a/sound/soc/intel/skylake/skl-topology.c +++ b/sound/soc/intel/skylake/skl-topology.c @@ -2325,7 +2325,7 @@ static int skl_tplg_get_manifest_tkn(struct device *dev, if (ret < 0) return ret; - tkn_count += ret; + tkn_count = ret; tuple_size += tkn_count * sizeof(struct snd_soc_tplg_vendor_string_elem); -- 2.17.1