From 543ff0e65129ad2b60a71f69e5fce1a2f21c2433 Mon Sep 17 00:00:00 2001 From: Fuqian Huang Date: Mon, 17 Jun 2019 11:04:12 +0800 Subject: [PATCH] dev: mfi: Remove unnecessary pointer printing in mfi.c In function mfi_timout, the address of cm will be printed out, change it to print cm_index rather than the address of cm to avoid kernel address leakage. Signed-off-by: Fuqian Huang --- sys/dev/mfi/mfi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/mfi/mfi.c b/sys/dev/mfi/mfi.c index 96c63fa3eb6..5a4b614107d 100644 --- a/sys/dev/mfi/mfi.c +++ b/sys/dev/mfi/mfi.c @@ -3761,8 +3761,8 @@ mfi_timeout(void *data) cm->cm_timestamp = time_uptime; } else { device_printf(sc->mfi_dev, - "COMMAND %p TIMEOUT AFTER %d SECONDS\n", - cm, (int)(time_uptime - cm->cm_timestamp) + "COMMAND %d TIMEOUT AFTER %d SECONDS\n", + cm->cm_index, (int)(time_uptime - cm->cm_timestamp) ); MFI_PRINT_CMD(cm); MFI_VALIDATE_CMD(sc, cm); -- 2.11.0