Re: [PATCH] hyperv: prevent potential NULL dereference

2024-05-06 Thread Ján Tomko
On a Friday in 2024, Kristina Hanicova wrote: On Fri, May 3, 2024 at 11:43 AM Oleg Sviridov wrote: Return value of a function 'virDomainChrDefNew' is dereferenced at hyperv_driver.c without checking for NULL, which can lead to NULL dereference immediatly after. *immediately Found by Linux

Re: [PATCH] hyperv: prevent potential NULL dereference

2024-05-03 Thread Kristina Hanicova
On Fri, May 3, 2024 at 11:43 AM Oleg Sviridov wrote: > Return value of a function 'virDomainChrDefNew' is dereferenced > at hyperv_driver.c without checking for NULL, which can lead to > NULL dereference immediatly after. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > S

[PATCH] hyperv: prevent potential NULL dereference

2024-05-03 Thread Oleg Sviridov
Return value of a function 'virDomainChrDefNew' is dereferenced at hyperv_driver.c without checking for NULL, which can lead to NULL dereference immediatly after. Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Oleg Sviridov --- src/hyperv/hyperv_driver.c | 3 ++