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


Groups > linux.kernel > #1610151

Re: [PATCH] netvsc: fix dereference before null check errors

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] netvsc: fix dereference before null check errors
Date 2017-03-28 01:10 +0200
Message-ID <tpLVT-76v-9@gated-at.bofh.it> (permalink)
References <toURz-1ZJ-1@gated-at.bofh.it> <tpraO-86m-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Haiyang Zhang <haiyangz@microsoft.com>
Date: Mon, 27 Mar 2017 00:50:27 +0000

> 
> 
>> -----Original Message-----
>> From: Colin King [mailto:colin.king@canonical.com]
>> Sent: Saturday, March 25, 2017 10:27 AM
>> To: KY Srinivasan <kys@microsoft.com>; Haiyang Zhang
>> <haiyangz@microsoft.com>; Stephen Hemminger <sthemmin@microsoft.com>;
>> devel@linuxdriverproject.org; netdev@vger.kernel.org
>> Cc: kernel-janitors@vger.kernel.org; linux-kernel@vger.kernel.org
>> Subject: [PATCH] netvsc: fix dereference before null check errors
>> 
>> From: Colin Ian King <colin.king@canonical.com>
>> 
>> ndev is being checked to see if it is a null pointer however before
>> the null check ndev is being dereferenced; hence there is a potential
>> null pointer dereference bug that needs fixing. Fix this by only
>> dereferencing ndev after the null check.
>> 
>> Detected by CoverityScan, CID#1420760, CID#140761 ("Dereference
>> before null check")
>> 
>> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> 
> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>

Applied.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] netvsc: fix dereference before null check errors Colin King <colin.king@canonical.com> - 2017-03-25 15:30 +0100
  RE: [PATCH] netvsc: fix dereference before null check errors Haiyang Zhang <haiyangz@microsoft.com> - 2017-03-27 03:00 +0200
    Re: [PATCH] netvsc: fix dereference before null check errors David Miller <davem@davemloft.net> - 2017-03-28 01:10 +0200

csiph-web