diff options
| author | Tom Rix <[email protected]> | 2020-08-11 07:02:19 -0700 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2020-08-18 15:52:45 +0300 |
| commit | 094dd0d730628448a80c7f5ba33038ecdddf5092 (patch) | |
| tree | 303061f8b81a607522baddba428870a28a3dc331 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | d2ab7f00f4321370a8ee14e5630d4349fdacc42e (diff) | |
rndis_wlan: tighten check of rndis_query_oid return
clang static analysis reports this problem
rndis_wlan.c:3147:25: warning: Assigned value is garbage or undefined
wiphy->max_num_pmkids = le32_to_cpu(caps.num_pmkids);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The setting of caps happens here, with a call to rndis_query_oid()
retval = rndis_query_oid(usbdev,
if (retval >= 0) {
Reviewing rndis_query_oid() shows that on success 0 is returned,
failure is otherwise. So the retval check is not tight enough.
So tighten the retval check. Similar problem in
rndis_wlan_get_caps().
Signed-off-by: Tom Rix <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions