From 9c898e7c0052b46fedbd9c4edef04d69a253bf26 Mon Sep 17 00:00:00 2001 From: Dhanashri Atre Date: Mon, 9 Nov 2015 15:06:16 -0800 Subject: [PATCH] qcacld-3.0: Replace panic with BUG_ON qcacld-2.0 to qcacld-3.0 propagation Register values are captured in the crash dump with BUG_ON. Change-Id: I33500aea0769879d63b2e684dc898ba0e3b0b5a2 CRs-Fixed: 813402 --- core/cdf/src/i_cdf_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cdf/src/i_cdf_util.h b/core/cdf/src/i_cdf_util.h index db2f11fa7e62..1ca6b1d6e421 100644 --- a/core/cdf/src/i_cdf_util.h +++ b/core/cdf/src/i_cdf_util.h @@ -95,7 +95,7 @@ static inline int __cdf_status_to_os_return(CDF_STATUS status) pr_err("Assertion failed! %s:%s %s:%d\n", \ # expr, __func__, __FILE__, __LINE__); \ dump_stack(); \ - panic("Take care of the assert first\n"); \ + BUG_ON(1); \ } \ } while (0)