summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/dwc3-st.c
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2017-05-17 14:57:45 +0200
committerFelipe Balbi <felipe.balbi@linux.intel.com>2017-06-02 10:22:10 +0200
commit04fb365c453e14ff9e8a28f1c46050d920a27a4a (patch)
tree5feb1c640faf6aa241faf85d5818be3b733c0fbc /drivers/usb/dwc3/dwc3-st.c
parentusb: gadget: udc-xilinx: clean up a variable name (diff)
downloadlinux-04fb365c453e14ff9e8a28f1c46050d920a27a4a.tar.xz
linux-04fb365c453e14ff9e8a28f1c46050d920a27a4a.zip
usb: dwc3: replace %p with %pK
%p will leak kernel pointers, so let's not expose the information on dmesg and instead use %pK. %pK will only show the actual addresses if explicitly enabled under /proc/sys/kernel/kptr_restrict. Cc: <stable@vger.kernel.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3/dwc3-st.c')
-rw-r--r--drivers/usb/dwc3/dwc3-st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/dwc3-st.c b/drivers/usb/dwc3/dwc3-st.c
index dfbf464eb88c..505676fd3ba4 100644
--- a/drivers/usb/dwc3/dwc3-st.c
+++ b/drivers/usb/dwc3/dwc3-st.c
@@ -230,7 +230,7 @@ static int st_dwc3_probe(struct platform_device *pdev)
dwc3_data->syscfg_reg_off = res->start;
- dev_vdbg(&pdev->dev, "glue-logic addr 0x%p, syscfg-reg offset 0x%x\n",
+ dev_vdbg(&pdev->dev, "glue-logic addr 0x%pK, syscfg-reg offset 0x%x\n",
dwc3_data->glue_base, dwc3_data->syscfg_reg_off);
dwc3_data->rstc_pwrdn =