Message ID | 20210929110431.1113708-1-qtxuning1999@sjtu.edu.cn |
---|---|
State | New |
Headers | show |
Series | clockresource/npcm: Fix kernel pointer leak | expand |
diff --git a/drivers/clocksource/timer-npcm7xx.c b/drivers/clocksource/timer-npcm7xx.c index a00520cbb660..bf477685d545 100644 --- a/drivers/clocksource/timer-npcm7xx.c +++ b/drivers/clocksource/timer-npcm7xx.c @@ -202,7 +202,7 @@ static int __init npcm7xx_timer_init(struct device_node *np) npcm7xx_clocksource_init(); npcm7xx_clockevents_init(); - pr_info("Enabling NPCM7xx clocksource timer base: %px, IRQ: %d ", + pr_info("Enabling NPCM7xx clocksource timer base: %p, IRQ: %d ", timer_of_base(&npcm7xx_to), timer_of_irq(&npcm7xx_to)); return 0;
Pointers should be printed with %p rather than %px which printed kernel pointer directly. Change %px to %p to print the secured pointer. Signed-off-by: Guo Zhi <qtxuning1999@sjtu.edu.cn> --- drivers/clocksource/timer-npcm7xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)