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

Commit 1d019fd4 authored by Dundi Raviteja's avatar Dundi Raviteja
Browse files

prima: Dereferencing uninitialized pointer while disabling channels

Accessing n_channels variable from wiphy bands that is
uninitialized which causes NULL pointer dereference in both
wlan_hdd_disable_channels() and wlan_hdd_restore_channels()
functions.

To address this, add NULL check for wiphy bands in both functions.

Change-Id: I937c3d70a6b93768fbe9e2d931dbde60aedc449d
CRs-Fixed: 2320898
parent f852cc56
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment