mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
qcacmn: Add cookie to tso seg structure to debug double mem free
Add a field in qdf_tso_seg_t. This cookie helps to check in case of double memory free case. When double mem free hits, it will result into qdf_assert. Change-Id: I3c60f2603bce23b47224ae9a5d88881c2fbb8e01 CRs-Fixed: 1102423
This commit is contained in:
parent
da35fb5c91
commit
028f0696be
1 changed files with 3 additions and 0 deletions
|
|
@ -454,6 +454,7 @@ struct qdf_tso_frag_t {
|
|||
};
|
||||
|
||||
#define FRAG_NUM_MAX 6
|
||||
#define TSO_SEG_MAGIC_COOKIE 0x7EED
|
||||
|
||||
/**
|
||||
* struct qdf_tso_flags_t - TSO specific flags
|
||||
|
|
@ -530,6 +531,8 @@ struct qdf_tso_seg_t {
|
|||
*/
|
||||
struct qdf_tso_seg_elem_t {
|
||||
struct qdf_tso_seg_t seg;
|
||||
uint16_t cookie:15,
|
||||
on_freelist:1;
|
||||
struct qdf_tso_seg_elem_t *next;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue