diff options
| author | Rajeev Kumar <rajekuma@qca.qualcomm.com> | 2015-03-04 16:36:05 -0800 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2015-03-09 17:14:30 +0530 |
| commit | 96ba934bac782aca0d2a3d138035059bf3316fee (patch) | |
| tree | bd049f3ace887aec94243741fc2a5af9ac7e4a5b | |
| parent | 919c7424bc01a7f826086d8c0dad9b430dc5b537 (diff) | |
qcacld-2.0: Add vos-assert in vos timer and list destroy APIs
Add vos_assert in vos timer and vos list destroy APIs in error case.
Change-Id: I50847a96ffbe8766c0713404e264ebf1947e3a13
CRs-Fixed: 802540
| -rw-r--r-- | CORE/VOSS/src/vos_list.c | 3 | ||||
| -rw-r--r-- | CORE/VOSS/src/vos_timer.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/CORE/VOSS/src/vos_list.c b/CORE/VOSS/src/vos_list.c index fd945f03e151..6032e74bf40c 100644 --- a/CORE/VOSS/src/vos_list.c +++ b/CORE/VOSS/src/vos_list.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2015 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -96,6 +96,7 @@ VOS_STATUS vos_list_destroy( vos_list_t *pList ) { VOS_TRACE(VOS_MODULE_ID_VOSS, VOS_TRACE_LEVEL_ERROR, "%s: list not initialized", __func__); + VOS_ASSERT(0); return VOS_STATUS_E_INVAL; } diff --git a/CORE/VOSS/src/vos_timer.c b/CORE/VOSS/src/vos_timer.c index badb44c4899d..afaf4a42e213 100644 --- a/CORE/VOSS/src/vos_timer.c +++ b/CORE/VOSS/src/vos_timer.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2013 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2013, 2015 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -538,6 +538,7 @@ VOS_STATUS vos_timer_destroy ( vos_timer_t *timer ) { VOS_TRACE(VOS_MODULE_ID_VOSS, VOS_TRACE_LEVEL_ERROR, "%s: Cannot destroy uninitialized timer",__func__); + VOS_ASSERT(0); return VOS_STATUS_E_INVAL; } @@ -613,6 +614,7 @@ VOS_STATUS vos_timer_destroy ( vos_timer_t *timer ) { VOS_TRACE(VOS_MODULE_ID_VOSS, VOS_TRACE_LEVEL_ERROR, "%s: Cannot destroy uninitialized timer",__func__); + VOS_ASSERT(0); return VOS_STATUS_E_INVAL; } spin_lock_irqsave( &timer->platformInfo.spinlock,flags ); |
