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:
Rajeev Kumar 2017-06-22 18:33:43 -07:00 • committed by Anjaneedevi Kapparapu
commit fd40df4bbc

View file

@ -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);