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

Commit 472e63cb authored by Ajit Vaishya's avatar Ajit Vaishya
Browse files

wlan: First initialize and then use of pbFrames

Temporary pbFrames pointer use to read IEEE80211
mgmt frame, but type and subtype read before assigning
mgmt frame to pbFrames which leads to access a NULL pointer
to reading type and subtype of wifi frame.
The Fix is to first assign the pointer pbFrames before us of it.

Change-Id: I19209cf5d000440becd050c00cc83d1497eb89d6
CRs-Fixed: 2952681
parent ed9ab4b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16289,9 +16289,9 @@ void hdd_indicate_mgmt_frame(tSirSmeMgmtFrameInd *frame_ind)
   }
   /* Try to retrieve the adapter from the mac address list*/
     pbFrames = frame_ind->frameBuf;
     type = WLAN_HDD_GET_TYPE_FRM_FC(pbFrames[0]);
     subType = WLAN_HDD_GET_SUBTYPE_FRM_FC(pbFrames[0]);
     pbFrames = frame_ind->frameBuf;
     nFrameLength = frame_ind->frameLen;
    /* Get pAdapter from Destination mac address of the frame */