diff options
| author | Colin Ian King <colin.king@canonical.com> | 2017-09-08 16:24:52 +0100 |
|---|---|---|
| committer | Kalle Valo <kvalo@codeaurora.org> | 2017-09-20 15:40:16 +0300 |
| commit | 6508497cbdc70b92130fbca57402af6a94e05d20 (patch) | |
| tree | 12c8c1979cf806500a7f0e38de072cd3af6b750b /tools/perf/scripts/python | |
| parent | rsi: miscellaneous changes for p2p mode (diff) | |
| download | linux-6508497cbdc70b92130fbca57402af6a94e05d20.tar.gz linux-6508497cbdc70b92130fbca57402af6a94e05d20.zip | |
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 <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
