wlan: Fix potential OOB read when indicate mgmt frame

qcacld-2.0 to prima propagation.

In function __hdd_indicate_mgmt_frame, it doesn't check mgmt frame
length and access pointer to frame, which cause OOB read potentially.
So, check frame length before access pointer to frame.

Issue: SEC-2027
Change-Id: Id2bd4276838f1eae49e8a24e8ab3361a69321a69
CRs-Fixed: 2525198
(adapted from commit d292244cf4923d573a8bfb8b90eebc64fad33e85)
1 file changed