mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
qcacmn: Modify __qdf_assert to invoke QDF_BUG
Currently, __qdf_assert is doing kernel panic, deviating the purpose of assert - "Asserts are NOT used for stopping a program in case of an error". To address this, modify __qdf_assert to invoke QDF_BUG which in turn warns or crashes based on the macro PANIC_ON_BUG. Change-Id: Ie62484f8f369d8aafa3b1970feafe556b2c94ffa CRs-Fixed: 1015603
This commit is contained in:
parent
35b4bced32
commit
92cf0523d8
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ static inline bool __qdf_is_macaddr_equal(struct qdf_mac_addr *mac_addr1,
|
|||
pr_err("Assertion failed! %s:%s %s:%d\n", \
|
||||
# expr, __func__, __FILE__, __LINE__); \
|
||||
dump_stack(); \
|
||||
BUG_ON(1); \
|
||||
QDF_BUG(0); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue