From patchwork Wed Nov 14 00:38:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 151017 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5074137ljp; Tue, 13 Nov 2018 16:39:10 -0800 (PST) X-Google-Smtp-Source: AJdET5evMRDXTCIovuE2lYY3Tcy7PGNS6eK2aGIWPpUUDyIr5GUjrAPeDyoqc3Xo488xdD0CL3S3 X-Received: by 2002:adf:bb44:: with SMTP id x4mr1072748wrg.24.1542155950414; Tue, 13 Nov 2018 16:39:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542155950; cv=none; d=google.com; s=arc-20160816; b=uPk5adNHVfoJ1HBiaAzUiqOF8Ps4XrKUY0+H035ms6ausCBXFIf79tj6DGpHqQclAA DYrXVMMrvr6fm5lMy74rN/MrZy/Vosg3C5dK9qN0LRJd5sgUvRXaQxUIXhYKsO1FZ9yK 99kz8OV0HAK8vYaRSwesJ+PfCjUdSXF+fQwO07n7/yyE7y47crUW3QDa6GreuG9Osk+A va3tkUvStTUB6iWej2JmJMfi3lFfeQHP+Kv4hPX82QaAMyKfWI4fWjfjAzbPqnqIKDWl rRtVpq2QrC1gPyKeVbhXw1CFAPdI2xcwd9irI7CJfp/c/+oHBvSOWp4vFVl5uMHHv1+k Hjbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to; bh=QuXLVtScMcjICLWYqLcP4YTpPuEPjSB91jSafNhWwbE=; b=MK7dnhxJziyJmkrum/qo6Y58BaYloSRKKBf9Sr50paELMUcIQzO6lari50UID37XXp m1DpC5fYYN7Nc9N0K2/dU2utcTz4MF+1zmOTx0e6ox5Mwyf+ws2ymtYP5D3WvbVSmyft uOMcjUDug8k1tKBsW1sFoGo8AUHPUHlOIkTLRhAnnN/lqkcCXK8Rvrq1YJGBxVF7v0mz LURnhfe8Mgz+WznyX1aLSLqFF8Q/jbMorSs1DXNW5Gf863Iyo6O5K3mNzjombyCJtRBc 6T59nHrMly3MvKadDBxIX+dWPkti5KvVgHWCCP2EiWzTs13nDb/A8wS63Ybvhm/hZ8Zt eUCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=bwiXbIJA; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id 125-v6si12060324wmc.161.2018.11.13.16.39.10; Tue, 13 Nov 2018 16:39:10 -0800 (PST) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=bwiXbIJA; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 25965267AB9; Wed, 14 Nov 2018 01:39:09 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id BE504267AEE; Wed, 14 Nov 2018 01:39:06 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id EB392267A61 for ; Wed, 14 Nov 2018 01:39:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=u+LP6mHsIEXmBHH6ffXglQV/vkCCsdnDYMZF2Ac2SX0=; b=bwiXbIJAcj7X oVD6WjeGjCYltXVs918+ZDx0T67VhXAPRKde2MS/qOL1q5I8/ei0K4WgXNgmUmEh+cnBQi4vvkWWK UHK8ZAHPetFmol2yO16g2qqYVtDwiFklpjp8EeL41ebQ8VOeK27QiBHH/069jOG+lPPWdT5WQHAm0 Fq2dI=; Received: from [64.114.255.97] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gMjCw-0002pK-H0; Wed, 14 Nov 2018 00:39:02 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 8824F440078; Wed, 14 Nov 2018 00:38:54 +0000 (GMT) From: Mark Brown To: Wei Yongjun In-Reply-To: Message-Id: <20181114003854.8824F440078@finisterre.ee.mobilebroadband> Date: Wed, 14 Nov 2018 00:38:54 +0000 (GMT) Cc: alsa-devel@alsa-project.org, Mark Brown Subject: [alsa-devel] Applied "ASoC: stm32: sai: fix invalid use of sizeof in stm32_sai_add_mclk_provider()" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: stm32: sai: fix invalid use of sizeof in stm32_sai_add_mclk_provider() has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 496fa3ba0a66c0192be86a45f44f94827ab8bcb6 Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Sat, 27 Oct 2018 02:19:59 +0000 Subject: [PATCH] ASoC: stm32: sai: fix invalid use of sizeof in stm32_sai_add_mclk_provider() sizeof() when applied to a pointer typed expression gives the size of the pointer, not that of the pointed data. Fixes: 8307b2afd386 ("ASoC: stm32: sai: set sai as mclk clock provider") Signed-off-by: Wei Yongjun Signed-off-by: Mark Brown --- sound/soc/stm/stm32_sai_sub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.19.1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index 506423d5861a..d4825700b63f 100644 --- a/sound/soc/stm/stm32_sai_sub.c +++ b/sound/soc/stm/stm32_sai_sub.c @@ -389,7 +389,7 @@ static int stm32_sai_add_mclk_provider(struct stm32_sai_sub_data *sai) char *mclk_name, *p, *s = (char *)pname; int ret, i = 0; - mclk = devm_kzalloc(dev, sizeof(mclk), GFP_KERNEL); + mclk = devm_kzalloc(dev, sizeof(*mclk), GFP_KERNEL); if (!mclk) return -ENOMEM;