net/sfc/base: fix PreFAST static analysis warning (C6001)
authorAndrew Lee <alee@solarflare.com>
Thu, 16 Nov 2017 08:04:40 +0000 (08:04 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit677cb89c9f119f636c2fc9edb0f411be9d33cad7
treef2d18a891029f754d23d28f0d62ee4beed027409
parent61a87e406118eaa52a291ab70a90a02b413b1841
net/sfc/base: fix PreFAST static analysis warning (C6001)

Fix warning
"C6001: Using uninitialized memory '*sensor_maskp'"
which could occur when the npages argument to efx_mcdi_sensor_info()
is less than or equal to zero.

Fixes: dfb3b1ce15f6 ("net/sfc/base: import monitors access via MCDI")
Cc: stable@dpdk.org
Signed-off-by: Andrew Lee <alee@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/mcdi_mon.c