mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
cnss2: Replace "%p" with "%pK"
The format specifier %p can leak kernel addresses. Use "%pK" instead. The behaviour of "%pK" depends on the 'kptr_restrict sysctl'. Change-Id: I65882067783100e7b9ecdc1e697b93948945b4ea CRs-Fixed: 2616581 Signed-off-by: Mahesh Kumar Kalikot Veetil <mkalikot@codeaurora.org>
This commit is contained in:
parent
1e97619791
commit
71a3560bd0
1 changed files with 3 additions and 3 deletions
|
|
@ -898,7 +898,7 @@ int cnss_wlfw_athdiag_read_send_sync(struct cnss_plat_data *plat_priv,
|
|||
return -ENODEV;
|
||||
|
||||
if (!data || data_len == 0 || data_len > QMI_WLFW_MAX_DATA_SIZE_V01) {
|
||||
cnss_pr_err("Invalid parameters for athdiag read: data %p, data_len %u\n",
|
||||
cnss_pr_err("Invalid parameters for athdiag read: data %pK, data_len %u\n",
|
||||
data, data_len);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
@ -985,12 +985,12 @@ int cnss_wlfw_athdiag_write_send_sync(struct cnss_plat_data *plat_priv,
|
|||
return -ENODEV;
|
||||
|
||||
if (!data || data_len == 0 || data_len > QMI_WLFW_MAX_DATA_SIZE_V01) {
|
||||
cnss_pr_err("Invalid parameters for athdiag write: data %p, data_len %u\n",
|
||||
cnss_pr_err("Invalid parameters for athdiag write: data %pK, data_len %u\n",
|
||||
data, data_len);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
cnss_pr_dbg("athdiag write: state 0x%lx, offset %x, mem_type %x, data_len %u, data %p\n",
|
||||
cnss_pr_dbg("athdiag write: state 0x%lx, offset %x, mem_type %x, data_len %u, data %pK\n",
|
||||
plat_priv->driver_state, offset, mem_type, data_len, data);
|
||||
|
||||
req = kzalloc(sizeof(*req), GFP_KERNEL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue