net/ring: check length of ring name
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 23 Apr 2019 16:53:35 +0000 (09:53 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 May 2019 16:45:23 +0000 (18:45 +0200)
commit70a6aeb4639b633bc322834bb6f07b6c45c7e52b
tree95186e9bc40e6019dbd431196846e238d50f39a4
parent42a665a3227462c97222f623779a82c8d4f8c54e
net/ring: check length of ring name

The ring name is passed in as part of this drivers API, but it
doesn't check that the name is not truncated.

Fixes: 96cb19521147 ("net/ring: use EAL APIs in PMD specific API")
Fixes: e1e4017751f1 ("ring: add new driver")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/ring/rte_eth_ring.c