Browse Source

qcacmn: Change format specifier %p to %pK

The printk format '%pK' will not leak kernel pointers to unprivileged
users. So change the format specifier from %p to %pK.

Change-Id: Ia229433dbbadc69cc1442c9e683659b8194e30b5
CRs-Fixed: 2133315
Mahesh Kumar Kalikot Veetil 7 years ago
parent
commit
9655be589a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      qdf/linux/src/qdf_debugfs.c

+ 1 - 1
qdf/linux/src/qdf_debugfs.c

@@ -313,7 +313,7 @@ qdf_dentry_t qdf_debugfs_create_file(const char *name, uint16_t mode,
 
 	if (IS_ERR_OR_NULL(file)) {
 		QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
-			  "%s creation failed %p", name, file);
+			  "%s creation failed 0x%pK", name, file);
 		file = NULL;
 	}