numam-dpdk/drivers/net/mlx5/linux
Michael Baum c2e3b84ec8 net/mlx5: fix null check in devargs parsing
The "mlx5_os_parse_eth_devargs()" function parses the ETH devargs into a
specific structure called "eth_da".
It gets structure called "devargs" as a member of EAL device containing
the relevant information.

When "devargs" structure is invalid, the function avoids parsing it.
However, when it valid but its field "args" is invalid, the function
tries to parse it and dereference to NULL pointer.

This patch adds check to avoid this NULL dereferencing.

Fixes: 919488fbfa ("net/mlx5: support Sub-Function")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
2022-10-26 13:33:45 +02:00
..
meson.build remove extra blank line at EOF 2022-02-27 21:26:06 +01:00
mlx5_ethdev_os.c bus/pci: make driver-only headers private 2022-09-23 16:14:34 +02:00
mlx5_flow_os.c net/mlx5: support ESP item on Windows 2022-06-05 17:04:48 +02:00
mlx5_flow_os.h common/mlx5: add send to kernel flow action 2022-10-26 13:33:28 +02:00
mlx5_mp_os.c net/mlx5: fix Verbs FD leak in secondary process 2022-10-02 09:13:50 +02:00
mlx5_os.c net/mlx5: fix null check in devargs parsing 2022-10-26 13:33:45 +02:00
mlx5_os.h net/mlx5: fix tunneling support query 2021-10-12 15:29:34 +02:00
mlx5_socket.c common/mlx5: share interrupt management 2022-06-23 17:24:59 +02:00
mlx5_verbs.c net/mlx5: fix Tx recovery 2022-06-01 09:49:42 +02:00
mlx5_verbs.h common/mlx5: add global MR cache create function 2021-10-21 15:57:24 +02:00
mlx5_vlan_os.c common/mlx5: add Netlink event helpers 2022-03-01 16:54:03 +01:00