summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-09-08 18:24:52 +0300
committerKalle Valo <kvalo@codeaurora.org>2017-09-20 15:40:16 +0300
commit6508497cbdc70b92130fbca57402af6a94e05d20 (patch)
tree12c8c1979cf806500a7f0e38de072cd3af6b750b /include/linux
parentaf75687286bfea63c428591f08e9df6a7e7a9ff2 (diff)
downloadlinux-6508497cbdc70b92130fbca57402af6a94e05d20.tar.xz
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 'include/linux')
0 files changed, 0 insertions, 0 deletions