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

Skip to content
Commit abb77db2 authored by sheenam monga's avatar sheenam monga Committed by nshrivas
Browse files

qcacld-3.0: Fix null vdev_mlme dereference

Currently csr_store_oce_cfg_flags_in_vdev does not do null
validation for vdev_mlme before accessing parameters of
vdev_mlme_priv_obj. wlan_vdev_mlme_get_priv_obj returns null
in case component id is greater than WLAN_UMAC_MAX_COMPONENTS
which can lead to null pointer dereference.

Fix is to add null pointer validation for vdev_mlme in
csr_store_oce_cfg_flags_in_vdev, before accessing parameters of
vdev_mlme to avoid null pointer dereference. In case vdev_mlme
becomes null release vdev reference and return.

Change-Id: Ia8552f5dee566fcc9e865f229599437fe284c803
CRs-Fixed: 2473875
parent f4a16ad3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment