From patchwork Fri Jul 6 13:07:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 141315 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3094724ljj; Fri, 6 Jul 2018 06:07:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpczQqa2LGGcc9w9DJ2mlxILxYz80G99Aa0sGu5pqrRXVSEYW+FmQ9WdkxxLsVZcncQjJMuw X-Received: by 2002:a17:902:9a4b:: with SMTP id x11-v6mr10107088plv.342.1530882432793; Fri, 06 Jul 2018 06:07:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530882432; cv=none; d=google.com; s=arc-20160816; b=ksO1bHou/+JqZvXAmtboy42N/bqSGd9JgEKWOho3W46t7Di1/WgkBWI0o0YZXiPPi9 oGn/6XxVxO5L6G2PGp/uUsyVa6qe1H4g5j/LxvOvziD5QXsJ0gkR7Nx0Am0w7axUIuxh gHFqoYPoPsceaWUjNey/VobpqBVyJ+5xJHKkDByo6hSRSVV3/uMRMakvHs9RWsVujcvd lg4lAV/EtImW62EjuzIQ06A5+ifEPBtemCW7w7vb+e5j0/v9kQU2UqUMh5K8BAVgKVIV Kg8s8sJ+Wp3atBd8F+DQxph5lbfdLvv+MBfItFH3ZAKxlE8jNM6oEWGRAc00bcmjKZDu SI/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=WJeLuqyEJc7/tPpKxg+RC7iLj+X8Fywv7Zs3uhn6DB8=; b=LjSusTD+vbItR0BtLv+zYzCf45cKIoIN6KaBak82GvkIuYeqcNRsKuMa5zDohogbMY Fg0qU0DxHlWf6//2k/7rgrrG2EerRZ47mj/VQldxwotK4pNfPRmOgfPKro8cJgJpYA7d FZsIo4DiN84SwQ78XAXJqA3S3hCix0mbbkOjIPzeXy7Swe1nl7Z/E8VhPdO8z9U5X7Aw sfwXhyzgToHvYyf0qf1oseyu1kbVny3fLd0XEF2Pu1kaXTuDuqHXvW6QYLM75ko/B+jZ wAIQgBhvTMuLlYFvrZgOp3KPAbK8Bj6aY1hMIJpreSfE0dSjCvdh+YOzrsZwyvH+MeiL lZqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iRkXqLWF; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f200-v6si9160344pfa.164.2018.07.06.06.07.12; Fri, 06 Jul 2018 06:07:12 -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=@linaro.org header.s=google header.b=iRkXqLWF; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933572AbeGFNHL (ORCPT + 30 others); Fri, 6 Jul 2018 09:07:11 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:39107 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932537AbeGFNHJ (ORCPT ); Fri, 6 Jul 2018 09:07:09 -0400 Received: by mail-wm0-f67.google.com with SMTP id p11-v6so14358301wmc.4 for ; Fri, 06 Jul 2018 06:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=WJeLuqyEJc7/tPpKxg+RC7iLj+X8Fywv7Zs3uhn6DB8=; b=iRkXqLWFnhArdsBb6TmP9EISMQ872vTwH07GyVtX469rW0yvMMZGbTzu3Ex2qOXO3j H8YxX1B/9Gh2ov3Pd8QvNMTKyy0FFLUsi58j2jugeJxgz5VX7ocdfmrANJj7UFVqqDcX Y6BHmXmsj+YfBIIkVW5PWbBm4fIJfy2qXyeFE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WJeLuqyEJc7/tPpKxg+RC7iLj+X8Fywv7Zs3uhn6DB8=; b=f3EiE1XezwyWlhvJAg5jw2mv2tJ/+TpaWRlJ5ru6DB0wXmskHZvYXsr6j/E6hflrCn fVGdZYJGFc4iXXZ0sAvHdgVQ4n1AwPJSpWeM62yKjXgTY0bgPEBC1UGQpqhEG66UjjmI ARJ77zmT/4veJaQpiUa1+4JL3YIJGedstpm7sc4U6p3bQcagod2ny/HcMOMfVIz43WZ2 ZVbiEZTIBVo3U35KvRcOIJON3kxryDUmll7sYfX+Kaq9SZdeW+IoMtqz5rQVNNjdqO/J EoRci+2fjfadsp7MCw0s45qcp305dc/9Wo2rcnM0DHEN/jBTwiYC9H91fGlgG8W8P8E4 WVRw== X-Gm-Message-State: APt69E2IcR/KY9SC4e9vNGLB7GLWov3di4ZLXZXv17UivDlZjPDs2bXY 1ky3zn0JrmOlLFbpbe1UhLYtJQ== X-Received: by 2002:a1c:90e:: with SMTP id 14-v6mr6684069wmj.130.1530882428381; Fri, 06 Jul 2018 06:07:08 -0700 (PDT) Received: from lmecxl0911.lme.st.com ([80.214.65.221]) by smtp.gmail.com with ESMTPSA id n6-v6sm719241wrr.27.2018.07.06.06.07.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jul 2018 06:07:07 -0700 (PDT) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, arnaud.pouliquen@st.com Cc: alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH] sound: stm32: replace "%p" with "%pK" Date: Fri, 6 Jul 2018 15:07:03 +0200 Message-Id: <20180706130703.22352-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The format specifier "%p" can leak kernel addresses. Use "%pK" instead. Signed-off-by: Benjamin Gaignard --- sound/soc/stm/stm32_adfsdm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.15.0 diff --git a/sound/soc/stm/stm32_adfsdm.c b/sound/soc/stm/stm32_adfsdm.c index db73fef3e500..0e9373064032 100644 --- a/sound/soc/stm/stm32_adfsdm.c +++ b/sound/soc/stm/stm32_adfsdm.c @@ -149,7 +149,7 @@ static int stm32_afsdm_pcm_cb(const void *data, size_t size, void *private) unsigned int old_pos = priv->pos; unsigned int cur_size = size; - dev_dbg(rtd->dev, "%s: buff_add :%p, pos = %d, size = %zu\n", + dev_dbg(rtd->dev, "%s: buff_add :%pK, pos = %d, size = %zu\n", __func__, &pcm_buff[priv->pos], priv->pos, size); if ((priv->pos + size) > buff_size) {