Files
android_kernel_xiaomi_sm8450/drivers/net/wireless/rsi
Colin Ian King 6508497cbd 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: dad0d04fa7 ("rsi: Add RS9113 wireless driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2017-09-20 15:40:16 +03:00
..
2015-11-18 14:28:31 +02:00
2017-09-20 15:38:55 +03:00
2017-09-20 15:38:55 +03:00
2014-03-17 13:51:52 -04:00
2017-08-08 14:46:03 +03:00