Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/softnic: fix null dereference in arguments parsing
[ upstream commit 51799b4 ] When there is no "firmware" in arguments, the "firmware" pointer is null, and will be dereferenced by rte_strscpy(). This patch moves the code block which copies character string from "firmware" to "p->firmware" into the "if" statements where "firmware" argument exists and it is duplicated successfully. Coverity issue: 372136 Fixes: d8f852f ("net/softnic: fix memory leak in arguments parsing") Signed-off-by: Dapeng Yu <dapengx.yu@intel.com> Acked-by: Jasvinder Singh <jasvinder.singh@intel.com>
- Loading branch information