mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
qcacmn: Log leaked SKB counts before calling QDF_BUG
If SKBs are leaked then 1st log number of SKBs leaked
and then trigger QDF_BUG.
Change-Id: I355e33727b7772af7bd58b9eabbd109bfa3ea2f0
CRs-Fixed: 2065760
This commit is contained in:
parent
ad612a2371
commit
fd40df4bbc
1 changed files with 3 additions and 1 deletions
|
|
@ -1462,8 +1462,10 @@ void qdf_net_buf_debug_exit(void)
|
|||
qdf_nbuf_track_memory_manager_destroy();
|
||||
|
||||
#ifdef CONFIG_HALT_KMEMLEAK
|
||||
if (count)
|
||||
if (count) {
|
||||
qdf_print("%d SKBs leaked .. please fix the SKB leak", count);
|
||||
QDF_BUG(0);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
EXPORT_SYMBOL(qdf_net_buf_debug_exit);
|
||||
|
|
|
|||
Loading…
Reference in a new issue