]> git.droids-corp.org - dpdk.git/commit
devargs: fix crash with uninitialized parsing
authorMadhuker Mythri <madhuker.mythri@oracle.com>
Mon, 14 Feb 2022 17:08:11 +0000 (22:38 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 27 Feb 2022 18:28:59 +0000 (19:28 +0100)
commit356a2aa054a9e803782ee8380a7ab1a53aecd1e3
tree78b2615a243931f581d2d85f01cee43cac524c85
parent1a287fc9c95bd6245c119b20f07382cf4b8fefa4
devargs: fix crash with uninitialized parsing

The function rte_devargs_parse() previously was safe to call with
non-initialized devargs structure as parameter.

When adding the support for the global device syntax,
this assumption was broken.
Restore it by forcing memset as part of the call itself.

Bugzilla ID: 933
Fixes: b344eb5d941a ("devargs: parse global device syntax")
Cc: stable@dpdk.org
Signed-off-by: Madhuker Mythri <madhuker.mythri@oracle.com>
Signed-off-by: Gaetan Rivet <grive@u256.net>
lib/eal/common/eal_common_devargs.c