net/sfc: make sure that stats name is nul-terminated
authorAndy Green <andy@warmcat.com>
Mon, 14 May 2018 05:00:47 +0000 (13:00 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:32:23 +0000 (23:32 +0200)
commited5b98483a30c034ab7ba666af2c26161828323d
tree731a75fe533869c63fda126b910b86c62896d3dd
parentf28742ba06a83a0bb8f658e12105e975ab7b26d7
net/sfc: make sure that stats name is nul-terminated

Fixes: 73280c1e4ff2 ("net/sfc: support xstats retrieval by ID")
Fixes: 7b9891769f4b ("net/sfc: support extended statistics")
Cc: stable@dpdk.org
Signed-off-by: Andy Green <andy@warmcat.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/sfc_ethdev.c