Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1804929imm; Fri, 6 Jul 2018 06:53:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe+tMqhrUYD4PJ72dLacQ3DMEOoYN6grUrgyoOesJQ2QjjZ3FeNnvpNQ2y9kAJrtYvR1olN X-Received: by 2002:a63:1262:: with SMTP id 34-v6mr3503368pgs.154.1530885220177; Fri, 06 Jul 2018 06:53:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530885220; cv=none; d=google.com; s=arc-20160816; b=aD/aCUEI3fLM0KxWom88ev+ZOGrSd68hu1Ao2pdz9V9jK6V8UJ8zPFDA/dgQ237IPf 5uEz5OOrcJxN9mXDzp033/AV31oJ/6XJCXLRkHGGmPeFqj4EgsVyymT6G3ltpuPBVduT pb+kT4w3SFjx9dSwDqTIhNvurOSLyqymAvO/eJybRZOaTnuWDiPTG0xsq95L5/Bw5HmR 1VuMFB57YEucS5UMGRAV80qdnjeP3lN2EBmBOc2V23k1DHmewNhOzHZSckdjqqoOeLyG cxUZurc4asjyrBL18KvDoeRhD4GJa3mm/I5lX1sOk17s73xjw1hzTS3q447rH1K9AXJs 44rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=8LdbCq0u4wqyVbHUr4/BaoF/F1JMmgo1OWtakT/7L9k=; b=p4oOPkyGrBFue/45ANA+9uJ48UIcUodagGzaazrB/ehTdVpzLtw3vv71RgfPiac2MK ESeEwRtTSyV/NKnvOJclUn4YE61J+c9HOFtzmUMmlC+8rxk4lbfA20dpPAZEeDWOED5A Ly7jSkqqogTb/jQMisnBe2XN20nCPIKp4t1vn+rj5p1H0exe9zhr4j2POJL9o7zgBX6g vmOT++T8uziNpPWchZjrxvobondIvbZpX7hmJaK5NUPNmL4CkPn0GzMQEMDaN4ZwuM6t d3XyWzS16jzuNrJn2iQNCjbs+C0+d4WfJ0Ssb32aRSvJC7bQJQURPTbHHj1fRJ7nhR5p thUw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11-v6si8171079plp.108.2018.07.06.06.53.25; Fri, 06 Jul 2018 06:53:40 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932878AbeGFNvN (ORCPT + 99 others); Fri, 6 Jul 2018 09:51:13 -0400 Received: from lb3-smtp-cloud9.xs4all.net ([194.109.24.30]:54686 "EHLO lb3-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932562AbeGFNvM (ORCPT ); Fri, 6 Jul 2018 09:51:12 -0400 Received: from [IPv6:2001:983:e9a7:1:18c6:def5:b848:12d6] ([IPv6:2001:983:e9a7:1:18c6:def5:b848:12d6]) by smtp-cloud9.xs4all.net with ESMTPA id bR8dfu9UyEJtcbR8efFTx2; Fri, 06 Jul 2018 15:51:11 +0200 Subject: Re: [PATCH] media: stm32: dcmi: replace "%p" with "%pK" To: Benjamin Gaignard , mchehab@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, hans.verkuil@cisco.com, hugues.fruchet@st.com Cc: linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard References: <20180706130355.22100-1-benjamin.gaignard@st.com> From: Hans Verkuil Message-ID: <64b2a2ea-2da9-c40d-eae4-6375079771e7@xs4all.nl> Date: Fri, 6 Jul 2018 15:51:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180706130355.22100-1-benjamin.gaignard@st.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfKu8/0pCnjkKsmGr5LTUOmccjx9PDe9Xe5JqB6gGgZmgQsWhZHM/n1Sv7cJSYLMDzW1/EwM2hStDY6AgP8cOfcH0pOPztYmLd/BE6kVP4Bk00RtKkEsV oSNUVd+CaFC5B0IOoQC2XKcbc8wHUKdDkWVlvlnWagDTxTnvQ+/VPFVJpk9vB1BdDwNcnYhvenNvWZ4iY6I2lfDmqdIOIymEBgm87Tgya45jt8fhSXcwxc1c HSbaDeHFp+V9oe6Y+C1k4jYXvdRH87gpKlJRPHYR/T3xl1erB57X5Az1rrDuijFFIOBUcVnlmXu4vra/pSK0K8P1zuyLoWycgZNOQB99Qc+Rrz4E0Q606ml1 MF8SlYcPdribMc5qJgYsBTYsk7lDK/nPVYvBlUetcK8J1HzZ63P0L0P3zb69jo44AMF4ysdm1LAIeex8UGHvBBkn+s5fJhLxKPYFzxgtBmc/K4Un1PQ64cvO 5E1TlZ9uW+PYTOjxGNmb64bjeFfZuAFzyS5kKpDChwlb/7FsVZSCy+bNJ4GyCwWvONSjT11pUPXRab7dcc08NHs8c4BIUkrtCwRL/4+rgYgrVti/am5wlqhr rwk04Yh/U27+NChUQliRd8sSBiiBievqzSt7YTiudcHZn3J3i1LYwPzzhSodEaq0ovM= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/07/18 15:03, Benjamin Gaignard wrote: > The format specifier "%p" can leak kernel addresses. > Use "%pK" instead. This patch no longer applies. AFAICT it is obsolete after some code reorg. Regards, Hans > > Signed-off-by: Benjamin Gaignard > --- > drivers/media/platform/stm32/stm32-dcmi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/stm32/stm32-dcmi.c b/drivers/media/platform/stm32/stm32-dcmi.c > index 2e1933d872ee..fe90672cf16f 100644 > --- a/drivers/media/platform/stm32/stm32-dcmi.c > +++ b/drivers/media/platform/stm32/stm32-dcmi.c > @@ -1753,7 +1753,7 @@ static int dcmi_probe(struct platform_device *pdev) > > ret = clk_prepare(mclk); > if (ret) { > - dev_err(&pdev->dev, "Unable to prepare mclk %p\n", mclk); > + dev_err(&pdev->dev, "Unable to prepare mclk %pK\n", mclk); > goto err_dma_release; > } > >