Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1735751 > unrolled thread

Re: rsi: fix a dereference on adapter before it has been null checked

Started byKalle Valo <kvalo@codeaurora.org>
First post2017-09-20 14:50 +0200
Last post2017-09-20 14:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: rsi: fix a dereference on adapter before it has been null checked Kalle Valo <kvalo@codeaurora.org> - 2017-09-20 14:50 +0200

#1735751 — Re: rsi: fix a dereference on adapter before it has been null checked

FromKalle Valo <kvalo@codeaurora.org>
Date2017-09-20 14:50 +0200
SubjectRe: rsi: fix a dereference on adapter before it has been null checked
Message-ID<urMBX-354-3@gated-at.bofh.it>
Colin Ian King <colin.king@canonical.com> wrote:

> From: Colin Ian King <colin.king@canonical.com>
> 
> 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>

Patch applied to wireless-drivers-next.git, thanks.

6508497cbdc7 rsi: fix a dereference on adapter before it has been null checked

-- 
https://patchwork.kernel.org/patch/9944509/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web