qcacmn: Fix the limitations in enabling memory debug on WIN

Copy the file name to a QDF local array, rather than using
the pointer to file name, to avoid access to the invalid pointer.
Also, separate out SKB debug from memory debug.
SKB debug will be enabled once the SKB related false positives are fixed.

CRs-Fixed: 2216661
Change-Id: I0ada1acb84c24c961cf614c9c47261f272959874
Esse commit está contido em:
Shiva Krishna Pittala
2018-04-02 17:23:42 +05:30
commit de nshrivas
commit b155431361
9 arquivos alterados com 63 adições e 28 exclusões

Ver arquivo

@@ -574,7 +574,7 @@ qdf_nbuf_set_send_complete_flag(qdf_nbuf_t buf, bool flag)
__qdf_nbuf_set_send_complete_flag(buf, flag);
}
#ifdef MEMORY_DEBUG
#ifdef NBUF_MEMORY_DEBUG
/**
* qdf_nbuf_map_check_for_leaks() - check for nbut map leaks
*
@@ -662,7 +662,7 @@ void qdf_nbuf_unmap_nbytes_single_debug(qdf_device_t osdev,
qdf_nbuf_unmap_nbytes_single_debug(osdev, buf, dir, nbytes, \
__FILE__, __LINE__)
#else /* MEMORY_DEBUG */
#else /* NBUF_MEMORY_DEBUG */
static inline QDF_STATUS
qdf_nbuf_map(qdf_device_t osdev, qdf_nbuf_t buf, qdf_dma_dir_t dir)
@@ -715,7 +715,7 @@ qdf_nbuf_unmap_nbytes_single(
{
return __qdf_nbuf_unmap_nbytes_single(osdev, buf, dir, nbytes);
}
#endif /* MEMORY_DEBUG */
#endif /* NBUF_MEMORY_DEBUG */
static inline void
qdf_nbuf_sync_for_cpu(qdf_device_t osdev, qdf_nbuf_t buf, qdf_dma_dir_t dir)
@@ -1069,7 +1069,7 @@ static inline qdf_nbuf_t qdf_nbuf_next(qdf_nbuf_t buf)
return __qdf_nbuf_next(buf);
}
#ifdef MEMORY_DEBUG
#ifdef NBUF_MEMORY_DEBUG
void qdf_net_buf_debug_init(void);
void qdf_net_buf_debug_exit(void);
void qdf_net_buf_debug_clean(void);