[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190617.140559.2007026200675147689.davem@davemloft.net>
Date: Mon, 17 Jun 2019 14:05:59 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: colin.king@...onical.com
Cc: yisen.zhuang@...wei.com, salil.mehta@...wei.com,
netdev@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] net: hns3: fix dereference of ae_dev before it
is null checked
From: Colin King <colin.king@...onical.com>
Date: Mon, 17 Jun 2019 12:42:14 +0100
> From: Colin Ian King <colin.king@...onical.com>
>
> Pointer ae_dev is null checked however, prior to that it is dereferenced
> when assigned pointer ops. Fix this by assigning pointer ops after ae_dev
> has been null checked.
>
> Addresses-Coverity: ("Dereference before null check")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Applied.
Powered by blists - more mailing lists