diff options
| author | Poddar, Siddarth <siddpodd@codeaurora.org> | 2017-01-12 18:40:24 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-01-12 20:28:59 -0800 |
| commit | fa23fc4e5fa4c57fee687f6f870b7a4e995c73f8 (patch) | |
| tree | d86d53c96308789418a8be66a9b894c74d4a1383 | |
| parent | e9f06355175b88e52a11b381f52365fcea1d540e (diff) | |
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
| -rw-r--r-- | qdf/inc/qdf_types.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qdf/inc/qdf_types.h b/qdf/inc/qdf_types.h index a489f9d0c895..f36e11b49db1 100644 --- a/qdf/inc/qdf_types.h +++ b/qdf/inc/qdf_types.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -487,6 +487,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 @@ -563,6 +564,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; }; |
