qcacmn: Fix false alarm of double nbuf allocation
In qdf_nbuf_unshare do not add new debug record when allocation fails Change-Id: Icece871a9e75af19841cf6824f286735660b09e3
This commit is contained in:

committed by
nshrivas

parent
b86ddaf205
commit
45ecf4361c
@@ -3267,8 +3267,9 @@ qdf_nbuf_unshare_debug(qdf_nbuf_t buf, const char *func_name, uint32_t line_num)
|
|||||||
if (qdf_likely(buf != unshared_buf)) {
|
if (qdf_likely(buf != unshared_buf)) {
|
||||||
qdf_net_buf_debug_delete_node(buf);
|
qdf_net_buf_debug_delete_node(buf);
|
||||||
|
|
||||||
qdf_net_buf_debug_add_node(unshared_buf, 0,
|
if (unshared_buf)
|
||||||
func_name, line_num);
|
qdf_net_buf_debug_add_node(unshared_buf, 0,
|
||||||
|
func_name, line_num);
|
||||||
}
|
}
|
||||||
|
|
||||||
return unshared_buf;
|
return unshared_buf;
|
||||||
|
Reference in New Issue
Block a user