diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2009-10-21 10:31:59 -0700 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2009-10-21 10:33:18 -0700 |
commit | 09dfaca5ecb53aec34a69fe9ebc2fe31e49bd4d9 (patch) | |
tree | acf987d79bfd7e9027764230d4ffc8fa19bf6677 /wilink_6_1/stad | |
parent | e6d712547e0d1c58925d04f03d286ad4aa75ce44 (diff) | |
download | ti-09dfaca5ecb53aec34a69fe9ebc2fe31e49bd4d9.tar.gz |
Add check for NULL pointer in sync functions (http://b/issue?id=2198151)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'wilink_6_1/stad')
-rw-r--r-- | wilink_6_1/stad/src/Ctrl_Interface/DrvMain.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/wilink_6_1/stad/src/Ctrl_Interface/DrvMain.c b/wilink_6_1/stad/src/Ctrl_Interface/DrvMain.c index 00ae174..257cf20 100644 --- a/wilink_6_1/stad/src/Ctrl_Interface/DrvMain.c +++ b/wilink_6_1/stad/src/Ctrl_Interface/DrvMain.c @@ -1266,6 +1266,7 @@ TI_STATUS drvMain_InsertAction (TI_HANDLE hDrvMain, EActionType eAction) /* Free signalling object */ os_SignalObjectFree (pDrvMain->tStadHandles.hOs, pDrvMain->hSignalObj); + pDrvMain->hSignalObj = NULL; if (pDrvMain->eSmState == SM_STATE_FAILED) return TI_NOK; @@ -1292,7 +1293,11 @@ TI_STATUS drvMain_Recovery (TI_HANDLE hDrvMain) if (!pDrvMain->bRecovery) { TRACE1(pDrvMain->tStadHandles.hReport, REPORT_SEVERITY_CONSOLE,".....drvMain_Recovery, ts=%d\n", os_timeStampMs(pDrvMain->tStadHandles.hOs)); +#ifdef REPORT_LOG WLAN_OS_REPORT((".....drvMain_Recovery, ts=%d\n", os_timeStampMs(pDrvMain->tStadHandles.hOs))); +#else + printk("%s\n",__func__); +#endif pDrvMain->bRecovery = TI_TRUE; drvMain_SmEvent (hDrvMain, SM_EVENT_RECOVERY); return TI_OK; |