net/ena: fix crash with unsupported device argument
authorMichal Krawczyk <mk@semihalf.com>
Tue, 11 May 2021 06:45:47 +0000 (08:45 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 11 May 2021 13:00:44 +0000 (15:00 +0200)
commit9f220a959d4d7208491efea8ca8e0c4a96b98f0e
tree3c810a06b925d93136fcd43f4c13d2b98cd8f3d6
parent9b312ad310024d00822cbc431677b59daa1e5e2c
net/ena: fix crash with unsupported device argument

As the documentation of rte_kvargs_parse() states, the valid_keys
argument must be NULL terminated. Lack of this feature may cause
segmentation fault if the passed devarg will be different then the
supported value.

Fixes: 8a7a73f26cc9 ("net/ena: support large LLQ headers")
Cc: stable@dpdk.org
Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Shay Agroskin <shayagr@amazon.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/ena/ena_ethdev.c