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

Commit 1682d942 authored by sheenam monga's avatar sheenam monga Committed by Gerrit - the friendly Code Review server
Browse files

qcacmn: Fix ref leak of vdev if scan is rejected

if gEnableDFSChnlScan is zero and scan channel list
contains only DFS channel, all DFS channels are
skipped and thus number of channel become zero.
ucfg_scan_start rejects scan request based on zero
number of channels and does not does not release
reference of vdev.

Fix is to add check and return failure before taking
the reference of the vdev.

Change-Id: I82ef308a335e6cbfd0d5a88e5c597f34b1cc8076
CRs-Fixed: 2427724
parent d809de59
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