qcacmn: skb memory leak, log skb being leaked
Log skb address being leaked, it will help to identify the state of skb during memory leak. For example if it was dma mapped, by looking at skb->cb fields Change-Id: I09e9aa9f69ef6b24e709bfbd25c12ac00ab1167c CRs-Fixed: 2142469
This commit is contained in:

committed by
snandini

parent
6d2f46df2c
commit
8fa36d4127
@@ -1627,9 +1627,9 @@ void qdf_net_buf_debug_exit(void)
|
|||||||
p_prev = p_node;
|
p_prev = p_node;
|
||||||
p_node = p_node->p_next;
|
p_node = p_node->p_next;
|
||||||
count++;
|
count++;
|
||||||
qdf_print("SKB buf memory Leak@ File %s, @Line %d, size %zu\n",
|
qdf_print("SKB buf memory Leak@ File %s, @Line %d, size %zu, nbuf %pK\n",
|
||||||
p_prev->file_name, p_prev->line_num,
|
p_prev->file_name, p_prev->line_num,
|
||||||
p_prev->size);
|
p_prev->size, p_prev->net_buf);
|
||||||
qdf_nbuf_track_free(p_prev);
|
qdf_nbuf_track_free(p_prev);
|
||||||
}
|
}
|
||||||
spin_unlock_irqrestore(&g_qdf_net_buf_track_lock[i], irq_flag);
|
spin_unlock_irqrestore(&g_qdf_net_buf_track_lock[i], irq_flag);
|
||||||
|
Reference in New Issue
Block a user