|
@@ -938,7 +938,8 @@ static void qdf_mem_domain_set_check_for_leaks(qdf_list_t *domains)
|
|
|
leak_count += qdf_mem_domain_check_for_leaks(i, domains + i);
|
|
|
|
|
|
if (leak_count)
|
|
|
- panic("%u fatal memory leaks detected!", leak_count);
|
|
|
+ QDF_DEBUG_PANIC("%u fatal memory leaks detected!",
|
|
|
+ leak_count);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -1029,7 +1030,8 @@ void qdf_mem_free_debug(void *ptr, const char *func, uint32_t line)
|
|
|
return;
|
|
|
|
|
|
if (qdf_unlikely((qdf_size_t)ptr <= sizeof(*header)))
|
|
|
- panic("Failed to free invalid memory location %pK", ptr);
|
|
|
+ QDF_DEBUG_PANIC("Failed to free invalid memory location %pK",
|
|
|
+ ptr);
|
|
|
|
|
|
qdf_talloc_assert_no_children_fl(ptr, func, line);
|
|
|
|
|
@@ -1064,7 +1066,8 @@ void qdf_mem_check_for_leaks(void)
|
|
|
leaks_count += qdf_mem_domain_check_for_leaks(current_domain, dma_list);
|
|
|
|
|
|
if (leaks_count)
|
|
|
- panic("%u fatal memory leaks detected!", leaks_count);
|
|
|
+ QDF_DEBUG_PANIC("%u fatal memory leaks detected!",
|
|
|
+ leaks_count);
|
|
|
}
|
|
|
|
|
|
/**
|