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: 10511663 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2C2A86024A for ; Fri, 6 Jul 2018 13:04:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D945285EC for ; Fri, 6 Jul 2018 13:04:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1131228632; Fri, 6 Jul 2018 13:04:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A646C285EC for ; Fri, 6 Jul 2018 13:04:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932867AbeGFNED (ORCPT ); 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-Google-Smtp-Source: AAOMgpc7B1ODgndxltMrhFsksPumiltl6beIJJNJgxNi9POYMDZcmYgiX3gGm/C0L3EbhHgvxq+F4w== 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 X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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; }