qcacld-3.0: Use of %p in htt_t2h_tx_ppdu_log_print()

Introducing integer overflow checks in htt_t2h_tx_ppdu_log_print()
contained use of %p which violates security guidelines.

Change %p to %pK.

Change-Id: I9e886e9b065ea6902aeedc3d9c25aac76a07d6de
CRs-Fixed: 2252217
This commit is contained in:
jitiphil
2018-06-07 18:32:45 +05:30
committed by nshrivas
parent bee83ddc48
commit 2de7d6ef8e

View File

@@ -968,7 +968,7 @@ htt_t2h_tx_ppdu_log_print(struct ol_fw_tx_dbg_ppdu_msg_hdr *hdr,
p8 = (uint8_t *) record;
calculated_p8 = p8 + sizeof(struct ol_fw_tx_dbg_ppdu_base);
if (calculated_p8 < p8) {
qdf_err("Overflow due to record %p", p8);
qdf_err("Overflow due to record %pK", p8);
continue;
}
p8 = calculated_p8;