[PATCH] devargs: Fix rte_devargs_parse uninitialized calls
Gaëtan Rivet
grive at u256.net
Tue Feb 15 14:45:07 CET 2022
On Tue, Feb 15, 2022, at 13:51, Ferruh Yigit wrote:
> On 2/10/2022 5:01 PM, Gaetan Rivet wrote:
>> 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")
>> Signed-off-by: Gaetan Rivet <grive at u256.net>
>
> Reported-by: Madhuker Mythri <madhuker.mythri at oracle.com>
>
> Since Madhuker did the initial analysis and the patch
> I think fair to give credit for the work.
>
> Thanks,
> ferruh
>
Sure, thanks Ferruh. Whichever patch is fine by me.
--
Gaetan Rivet
More information about the dev
mailing list