Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4561815f authored by CNSS_WLAN Service's avatar CNSS_WLAN Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "wlan: check count variable while removing from list" into wlan-driver.lnx.1.0

parents 9aa93749 4b084d27
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ VOS_STATUS hdd_list_remove_front( hdd_list_t *pList, hdd_list_node_t **ppNode )
{
   struct list_head * listptr;

   if ( list_empty( &pList->anchor ) )
   if (!pList->count)
   {
      return VOS_STATUS_E_EMPTY;
   }
@@ -96,7 +96,7 @@ VOS_STATUS hdd_list_remove_back( hdd_list_t *pList, hdd_list_node_t **ppNode )
{
   struct list_head * listptr;

   if ( list_empty( &pList->anchor ) )
   if (!pList->count)
   {
      return VOS_STATUS_E_EMPTY;
   }