From patchwork Fri Jul 6 13:08:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 141316 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3095963ljj; Fri, 6 Jul 2018 06:08:15 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdkWoD8QLjcXJ+cE0oVfk+6TH48Emx8byfoG8Pxq6CkBCsCNJnv9Xs0HIYI3IY1AWL82tHM X-Received: by 2002:a17:902:4203:: with SMTP id g3-v6mr10073973pld.315.1530882495034; Fri, 06 Jul 2018 06:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530882495; cv=none; d=google.com; s=arc-20160816; b=NxvtROePKnNv+wtbHoxs2Hlvz8JD9V1p4I+PUFltNZaXv7tSqRiAUfjatPG+KeNEvN JGmoyodat313vyNKnr/JbYDBGO5h3ofLbe1ODFQzXWevUxT46VkDnw6o+pIQqUls/VCt YGdsIGMZehJb5JOB4tT0M/XRSCYEjapsRkH48k7Aj2DYa7jsi2s0nrAOe6NBX3RMZxsf nFU0C8mG3upZyEn0aqr4EHpTXkca1WLHiuYAL9Xr+kZcerA9J8d1xSONQRsdTdcM90PU AahSW9ehwK+/izX6DTkggBOnGNjSlHOHSHuYmZKx+dUhJ31DHyWlR6yYGIeVsEcSl3sb UXYQ== 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=blOfyicdnlDBSeD7H7hb0dbhoJ+wEaK45HTXHhPCJRU=; b=g29o5aNLEldozFCdrODopEa3p3X9mBg9R3vdMj00+8Z2q/npbAluqi4TybdD5s6pH/ 7KAddftSO2GDrFA4j2CU904GYni+0OfHJ+SiU8XBGynZwTlIMqJSL2+04PROefeVIsgJ xlZ2h2lkr23rWT0r/MYKFWp3PTLFgH77ngwhLL8hJTUs7qOfgiRMP88w76koIZ18EA0e 3M98u0B3EGmK5UW8YD7XUknUmuKEYmGiikzyfZAD32CaqQfKrVzlLq45VTLR/vkvs5h6 xsO38s4IGdSBI19/PejzFbJwB4tM0FhDQGGFWV/69AHv3iIWVTtobUFIJYQEeMF+xd0X lj+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=f5ooQJad; spf=pass (google.com: best guess record for domain of linux-watchdog-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-watchdog-owner@vger.kernel.org; dmarc=fail (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.08.14 for ; Fri, 06 Jul 2018 06:08:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-watchdog-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=f5ooQJad; spf=pass (google.com: best guess record for domain of linux-watchdog-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-watchdog-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933230AbeGFNIO (ORCPT ); Fri, 6 Jul 2018 09:08:14 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:53996 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933105AbeGFNIN (ORCPT ); Fri, 6 Jul 2018 09:08:13 -0400 Received: by mail-wm0-f66.google.com with SMTP id b188-v6so14868111wme.3 for ; Fri, 06 Jul 2018 06:08:13 -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=Ftq1080aXc/JhiteENcbMRqIZL2weLRpnJHeOh+TPpo=; b=f5ooQJadafYSWjE6Fl3I2XvZB/H2WuZPFJMgvw7abXRrFNcxH4TK9CJmR/jg/YYigU Q8Na+zHl0fVER680wafm2bZbW/VEOepqNO1Gv7zoVIhKVDipHY9PbCcmQHs2llXRDivJ AUlVFMoCX2qZ5c2onW2OxjIdYW7tdvPgGCzns= 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=Ftq1080aXc/JhiteENcbMRqIZL2weLRpnJHeOh+TPpo=; b=Ld1kAyExgOfd3xsSkEjWgDhPfjJzOco84YUyPfXfgAtyEBffqzdvSzEIYlhBZSMBu8 tZ1OtAm+UlND3RJ6HINzf9aa196TWMGDX5E+0ucTS7qmlpc0S17kXZnxJxYSgCWvkDX9 p8+YRDQJebbrzcUDuuPQvuGZDgxK297NsdjLgIw7Qivc1P7+1MqNvp16hcRwPHMASdt2 53KhtWb+4JU9CJ3FPNbiE4AGNEoBY6GelYVa7xUmctdEdqOPXwDBEEbBR7ieBekddYSf b52CyHtAJR8KpmhXWEZe4CJUpvHuwLI4raqDUpcKYDmcnRFZb8Ap4qbr92lpb86RNCr4 a89g== X-Gm-Message-State: APt69E1n4552a3l9A2kOefVgVTbJ0eD0VQJE1VhwuCLcG6DabakFXmkc 7HJbQp1zwESn26tJoLjL6RzJ7g== X-Received: by 2002:a1c:d812:: with SMTP id p18-v6mr6910776wmg.92.1530882492535; Fri, 06 Jul 2018 06:08:12 -0700 (PDT) Received: from lmecxl0911.lme.st.com ([80.214.65.221]) by smtp.gmail.com with ESMTPSA id l17-v6sm14266704wrh.45.2018.07.06.06.08.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jul 2018 06:08:12 -0700 (PDT) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: wim@linux-watchdog.org, linux@roeck-us.net, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com Cc: linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH] watchdog: stm32: replace "%p" with "%pK" Date: Fri, 6 Jul 2018 15:08:08 +0200 Message-Id: <20180706130808.22466-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org The format specifier "%p" can leak kernel addresses. Use "%pK" instead. Signed-off-by: Benjamin Gaignard --- drivers/watchdog/stm32_iwdg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.15.0 -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/watchdog/stm32_iwdg.c b/drivers/watchdog/stm32_iwdg.c index c97ad5619cb0..740f74a98644 100644 --- a/drivers/watchdog/stm32_iwdg.c +++ b/drivers/watchdog/stm32_iwdg.c @@ -172,7 +172,7 @@ static int stm32_iwdg_probe(struct platform_device *pdev) ret = clk_prepare_enable(clk); if (ret) { - dev_err(&pdev->dev, "Unable to prepare clock %p\n", clk); + dev_err(&pdev->dev, "Unable to prepare clock %pK\n", clk); return ret; }