diff options
Diffstat (limited to 'CORE/SAP/src/sapModule.c')
| -rw-r--r-- | CORE/SAP/src/sapModule.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CORE/SAP/src/sapModule.c b/CORE/SAP/src/sapModule.c index 731ea68c4ca8..17af0026da54 100644 --- a/CORE/SAP/src/sapModule.c +++ b/CORE/SAP/src/sapModule.c @@ -145,7 +145,11 @@ WLANSAP_Open ptSapContext pSapCtx = NULL; /*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/ - VOS_ASSERT(pvosGCtx); + if (NULL == pvosGCtx) + { + VOS_ASSERT(pvosGCtx); + return VOS_STATUS_E_FAULT; + } /*------------------------------------------------------------------------ Allocate (and sanity check?!) SAP control block ------------------------------------------------------------------------*/ |
