diff options
| author | Colin Ian King <[email protected]> | 2017-09-08 16:24:52 +0100 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2017-09-20 15:40:16 +0300 |
| commit | 6508497cbdc70b92130fbca57402af6a94e05d20 (patch) | |
| tree | 12c8c1979cf806500a7f0e38de072cd3af6b750b /tools/perf/scripts/python | |
| parent | af75687286bfea63c428591f08e9df6a7e7a9ff2 (diff) | |
rsi: fix a dereference on adapter before it has been null checked
The assignment of dev is dereferencing adapter before adapter has
been null checked, potentially leading to a null pointer dereference.
Fix this by simply moving the assignment of dev to a later point
after the sanity null check of adapter.
Detected by CoverityScan CID#1398383 ("Dereference before null check")
Fixes: dad0d04fa7ba ("rsi: Add RS9113 wireless driver")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions