qcacmn: Fix static code analysis issues in DP

hdr_ptr is in skb_buffer data, it's assigned with 6B array,
use uint8_t point convert to avoid SA overflow warnning.

tid has asseration protect, but need to break execute to avoid
of SA warnning

Fix use-after-free of ast_entry

Change-Id: I0835f93291cf3da2b4fd57d8c9a90f20a60c11ee
CRs-Fixed: 2751678
此提交包含在:
Yu Tian
2020-08-10 15:51:00 +08:00
提交者 snandini
父節點 44150359c9
當前提交 a1264e5fea
共有 2 個檔案被更改,包括 2 行新增1 行删除

查看文件

@@ -1632,6 +1632,7 @@ dp_rx_defrag_store_fragment(struct dp_soc *soc,
if (tid >= DP_MAX_TIDS) {
dp_info("TID out of bounds: %d", tid);
qdf_assert_always(0);
goto discard_frag;
}
pdev = peer->vdev->pdev;