mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
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:
parent
b86ddaf205
commit
45ecf4361c
1 changed files with 3 additions and 2 deletions
|
|
@ -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)) {
|
||||
qdf_net_buf_debug_delete_node(buf);
|
||||
|
||||
qdf_net_buf_debug_add_node(unshared_buf, 0,
|
||||
func_name, line_num);
|
||||
if (unshared_buf)
|
||||
qdf_net_buf_debug_add_node(unshared_buf, 0,
|
||||
func_name, line_num);
|
||||
}
|
||||
|
||||
return unshared_buf;
|
||||
|
|
|
|||
Loading…
Reference in a new issue