From: Michal Krawczyk Date: Tue, 11 May 2021 06:45:47 +0000 (+0200) Subject: net/ena: fix crash with unsupported device argument X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9f220a959d4d7208491efea8ca8e0c4a96b98f0e;p=dpdk.git 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 Reviewed-by: Igor Chauskin Reviewed-by: Shay Agroskin Acked-by: Ferruh Yigit --- diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index 53647cc56e..9721a70cf8 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -2876,6 +2876,7 @@ static int ena_parse_devargs(struct ena_adapter *adapter, { static const char * const allowed_args[] = { ENA_DEVARG_LARGE_LLQ_HDR, + NULL, }; struct rte_kvargs *kvlist; int rc;