From patchwork Fri Jul 6 13:03:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 141313 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3090712ljj; Fri, 6 Jul 2018 06:04:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcKfJsxTne73CeFW4EWhB0WZ3IDrOHDtL56v7bu9gpSN+envOWkfAjqeDAN43orB7wjCCH9 X-Received: by 2002:a62:c0c4:: with SMTP id g65-v6mr10479558pfk.72.1530882245036; Fri, 06 Jul 2018 06:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530882245; cv=none; d=google.com; s=arc-20160816; b=BDbThBSiQK2xGypkRSZ4rXjzW37tW7jpAtjBJwOVX9XCLVQul6NcPHpzuD8SuU3w0N b62lrtUtfWLeht5BVG1T2sfP7c7rFkWx2Us1uKbIB4Wl+mM0pfMuatsMywrvsKiPnuX2 y6wL6fjfEo9LeJQsZdZIGqid9ogM97Q2E1cmzEyz3nImpmg26FubYfGCkKhKK1PyErYx XCYY3qB1n2pq2ZLxz0yS9tZIupcTO/AzqTk/CJKjU2r359eiSoKu+p2bmQSyXkkqh0vw Y49UuNr+IymmSjSSuuH3KMt5HfqLxDQcwr6Aed7N6a4rN9QHWGADspzQ8cf2syhPOOCC 2new== 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=Tb7st3shVAR02PPI8VyW+WbQUABCRQ96wJt2tDBcs10=; b=gOs5173yQTW1SRkmEbe+HK2N3QQ84V/O5weCjdpiiHAgXjJQsKOKqXHZM2QmUG8t7I amd6KLb+JwwgROlWzZ/qgojxg70oEOKEI/+sOaKfb4Gf/3bboN2zkCf9f1mpXk3nKGrK AMVvUu5nrPPVlc0SFX5PaRUZXb9qUq4Znsox9j+Vl+lJTvzNkQAhEGtCM33AMAXLXMTZ 6jwW4q6YHKewR8ZxylB+G4co8KSlUbqg0sk6lcrWHipWOAlf0Al9GmR/4bPUXvBoIxI6 WgafM7JYoLEmuFYOTkGt+63wo3+uSyxlo4V9slxJiVAdsrOAx2R172tcV3Zp6AsXTZ1v 5DUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D2BCnL+M; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-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 184-v6si7857235pgj.421.2018.07.06.06.04.04; Fri, 06 Jul 2018 06:04:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-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=D2BCnL+M; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-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 S932867AbeGFNED (ORCPT + 4 others); Fri, 6 Jul 2018 09:04:03 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:56136 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932336AbeGFNEC (ORCPT ); Fri, 6 Jul 2018 09:04:02 -0400 Received: by mail-wm0-f65.google.com with SMTP id v16-v6so14849459wmv.5 for ; Fri, 06 Jul 2018 06:04:02 -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=Tb7st3shVAR02PPI8VyW+WbQUABCRQ96wJt2tDBcs10=; b=D2BCnL+Mrc+KgJj//9YPtLr9bh+gYxTmTmmx9Arxb202g+OLQ/q4hHnYK6R5b79bHP 19KLkzH4Nce/PE78UKGDajanZmFzQvhxeiJxXLr+p/JKPDc5dqR4zc5rCZ0WRE8IQFGn buXAJDismfW48pTy+tozPJrAOXAOibeH4p+zY= 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=Tb7st3shVAR02PPI8VyW+WbQUABCRQ96wJt2tDBcs10=; b=nYMlLhMhEBxB7F4EzrrW6BQVtgmPcKjCk5WltL5ga6GLmtzSlOdVlSdPMss5RL7t57 ylsBVErlDYvrQD9NW70kssufGAbpz7tDrrpUwtkgG+WtkSJHdFQWoJWfwwSBmxxa54UM B42IsZWQ56UT56NlbJ3HPPbx7LS8tjtJUIjqieLaQbhPs9UrBCYJ6wbL3597YUAtLhAk jQAiU7xJsjgePWNEjjwV/ZbwA9Bqqf8ogf6c5BOZhDx+rwJJXKi5hA06g2tBRztGzGk9 AM5VB4lmRO5xCfRllzBWi/KCkZv/dJmN7dSPxtz/WXOl4zvC0q2lHl2MWNFVyRvyt/mt xsdA== X-Gm-Message-State: APt69E16gOpz3DFQB+kRFSMRrvrtTlYjVWLGLsa4jOvj3lQ5pAsmB/Pn VFCx1jpiPBEvFDxnhgz4B5gFgQ== X-Received: by 2002:a1c:be10:: with SMTP id o16-v6mr6095374wmf.132.1530882241629; Fri, 06 Jul 2018 06:04:01 -0700 (PDT) Received: from lmecxl0911.lme.st.com ([80.214.65.221]) by smtp.gmail.com with ESMTPSA id h102-v6sm13219199wrh.60.2018.07.06.06.03.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jul 2018 06:04:01 -0700 (PDT) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: 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 Subject: [PATCH] media: stm32: dcmi: replace "%p" with "%pK" Date: Fri, 6 Jul 2018 15:03:55 +0200 Message-Id: <20180706130355.22100-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The format specifier "%p" can leak kernel addresses. Use "%pK" instead. Signed-off-by: Benjamin Gaignard --- drivers/media/platform/stm32/stm32-dcmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.15.0 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; }