aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-09-08 16:24:52 +0100
committerKalle Valo <kvalo@codeaurora.org>2017-09-20 15:40:16 +0300
commit6508497cbdc70b92130fbca57402af6a94e05d20 (patch)
tree12c8c1979cf806500a7f0e38de072cd3af6b750b /tools/perf/scripts/python
parentrsi: miscellaneous changes for p2p mode (diff)
downloadlinux-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