qcacmn: Replace panic by QDF_DEBUG_PANIC

Replace panic by QDF_DEBUG_PANIC because if PANIC_ON_BUG is compiled out,
we do not want to panic the system.

Change-Id: Idae89d6881ed5543273b047a0b77bc3ae55132b5
CRs-Fixed: 2545292
This commit is contained in:
Alan Chen
2019-10-14 16:50:18 -07:00
committed by nshrivas
vanhempi 23990a2d01
commit ddcff963a2
2 muutettua tiedostoa jossa 7 lisäystä ja 4 poistoa

Näytä tiedosto

@@ -205,7 +205,7 @@ static inline bool __qdf_is_macaddr_equal(struct qdf_mac_addr *mac_addr1,
qdf_err("Assertion failed! %s:%s %s:%d", \
#expr, __FUNCTION__, __FILE__, __LINE__); \
dump_stack(); \
panic("Take care of the TARGET ASSERT first\n"); \
QDF_DEBUG_PANIC("Take care of the TARGET ASSERT first\n"); \
} \
} while (0)

Näytä tiedosto

@@ -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);
}
/**