net/sfc/base: check size of memory to read sensors data to
authorMartin Harvey <mharvey@solarflare.com>
Mon, 10 Sep 2018 09:33:15 +0000 (10:33 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 27 Sep 2018 23:41:02 +0000 (01:41 +0200)
commit252faf84f41e6d726d3ab0f9b7544723756afcca
tree27a7b893848cf6dfcc3202d5974304f18d20b3ba
parent0c52235b43f818e886f5a378a0a7c0d682ae42e9
net/sfc/base: check size of memory to read sensors data to

Size of provided memory should be consistent with specified size.

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