Re: [PATCH RESEND v2 02/11] net/tap: check if name is null

2023-01-18 Thread Sinan Kaya
On Wed, 2023-01-18 at 10:57 +, Ferruh Yigit wrote: > I assume this is highlighted by a tool but in practice > > 'rte_vdev_device_name()' should not return NULL, and there are many > > other location this check is missing. That's correct. Warning was found by codeql static analysis tool. When

Re: [PATCH RESEND v2 02/11] net/tap: check if name is null

2023-01-18 Thread Ferruh Yigit
On 11/22/2022 3:30 PM, ok...@kernel.org wrote: > From: Sinan Kaya > > In rte_pmd_tun_probe result of call to rte_vdev_device_name is > dereferenced here and may be null. > > Signed-off-by: Sinan Kaya > --- > drivers/net/tap/rte_eth_tap.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --g

[PATCH RESEND v2 02/11] net/tap: check if name is null

2022-11-22 Thread okaya
From: Sinan Kaya In rte_pmd_tun_probe result of call to rte_vdev_device_name is dereferenced here and may be null. Signed-off-by: Sinan Kaya --- drivers/net/tap/rte_eth_tap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c in