[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170408.081459.254155739436767702.davem@davemloft.net>
Date: Sat, 08 Apr 2017 08:14:59 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: colin.king@...onical.com
Cc: jakub.kicinski@...ronome.com, simon.horman@...ronome.com,
oss-drivers@...ronome.com, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][-next] nfp: don't dereference a null nn->eth_port to
print a warning
From: Colin King <colin.king@...onical.com>
Date: Thu, 6 Apr 2017 13:54:35 +0100
> From: Colin Ian King <colin.king@...onical.com>
>
> On the case where nn->eth_port is null the warning message
> is printing the port by dereferencing this null pointer.
> Remove the deference to avoid a crash when printing the
> warning message.
>
> Detected by CoverityScan, CID#1426198 ("Dereference after null check")
>
> Fixes: ce22f5a2cbe3c627 ("nfp: separate high level and low level NSP headers")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Applied, thanks.
Powered by blists - more mailing lists