These functions return value is invariant since 18f3771, so change
its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Pavel Nekrasov
Signed-off-by: Alexander Kuznetsov
---
src/hypervisor/virhostdev.c | 21
These functions return value is invariant since VIR_EXPAND_N check
removal in 7d2fd6e, so change its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Pavel Nekrasov
Signed-off-by: Alexander Kuznetsov
---
src/access
These functions return value is invariant since 18f3771, so change
its type and remove all dependent checks.
Best regards,
Alexander Kuznetsov
---
v2:
- One function per commit.
Alexander Kuznetsov (4):
util: Change return type of virPCIDeviceSetUsedBy to void
util: Change return type of
This function return value is invariant since 18f3771, so change
its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Pavel Nekrasov
Signed-off-by: Alexander Kuznetsov
---
src/hypervisor/virhostdev.c | 12
src
This function return value is invariant since 18f3771, so change
its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Pavel Nekrasov
Signed-off-by: Alexander Kuznetsov
---
src/hypervisor/virhostdev.c | 3 +--
src/util
This function return value is invariant since 18f3771, so change
its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Pavel Nekrasov
Signed-off-by: Alexander Kuznetsov
---
src/logging/log_daemon.c| 8 ++--
src
This function return value is invariant since 18f3771, so change
its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Pavel Nekrasov
Signed-off-by: Alexander Kuznetsov
---
src/hypervisor/virhostdev.c | 6 ++
src/util
This function return value is invariant since VIR_EXPAND_N check
removal in 7d2fd6e, so change its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Pavel Nekrasov
Signed-off-by: Alexander Kuznetsov
---
src/locking
This function return value is invariant since VIR_EXPAND_N check
removal in 7d2fd6e, so change its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Pavel Nekrasov
Signed-off-by: Alexander Kuznetsov
---
src/access
These functions return value is invariant since VIR_EXPAND_N check
removal in 7d2fd6e, so change its type and remove all dependent checks.
Best regards,
Alexander Kuznetsov
---
v2:
- One function/file per commit.
Alexander Kuznetsov (6):
access: Change return type of
These functions return value is invariant since VIR_EXPAND_N check
removal in 7d2fd6e, so change its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Pavel Nekrasov
Signed-off-by: Alexander Kuznetsov
---
src/util/virsysinfo.c
This function return value is invariant since VIR_EXPAND_N check
removal in 7d2fd6e, so change its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Pavel Nekrasov
Signed-off-by: Alexander Kuznetsov
---
src/admin
This function return value is invariant since VIR_EXPAND_N check
removal in 7d2fd6e, so change its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Pavel Nekrasov
Signed-off-by: Alexander Kuznetsov
---
src/remote
This function return value is invariant since VIR_EXPAND_N check
removal in 7d2fd6e, so change its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Pavel Nekrasov
Signed-off-by: Alexander Kuznetsov
---
src/hyperv/hyperv_wmi.c
Kindly reminding about this small cosmetic fix
Kindly reminding about this small cosmetic fix
This function return value is invariant since 18f3771, so change
its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Pavel Nekrasov
Signed-off-by: Alexander Kuznetsov
Reviewed-by: Jiri Denemark
---
src/hypervisor
These functions return value is invariant since 18f3771, so change
its type and remove all dependent checks.
Best regards,
Alexander Kuznetsov
---
v3:
- Fix indentation errors.
- 2: add missing virSCSIDeviceSetUsedBy call
- 3: remove non-relevant cosmetic fix
v2:
- One function per commit
This function return value is invariant since 18f3771, so change
its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Pavel Nekrasov
Signed-off-by: Alexander Kuznetsov
---
src/hypervisor/virhostdev.c | 13 +
src
This function return value is invariant since 18f3771, so change
its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Pavel Nekrasov
Signed-off-by: Alexander Kuznetsov
---
src/hypervisor/virhostdev.c | 3 +--
src/util
This function return value is invariant since 18f3771, so change
its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Pavel Nekrasov
Signed-off-by: Alexander Kuznetsov
Reviewed-by: Jiri Denemark
---
src/logging/log_daemon.c
x this small cosmetic thing, but I thought it was too
small for a separate patch. Should it be taken out separately,
or left until possible changes in the affected function?
--
Best regards,
Alexander Kuznetsov
Submit patches guideline recommends to ping if there is no response for more
than a week,
so I kindly remind about these cosmetic fixes too :)
tag when sending v3, since 2 patches have it,
and 2 patches don't. Should I add it to my commit message to these 2 patches?
"Submit patches" wasn't clear at this point, so I wanted to clarify
Thanks again for your time and patience!
--
Best regards,
Alexander Kuznetsov
Submit patches guideline recommends to ping if there is no response for more
than a week,
so I kindly remind about these and neighboring cosmetic fixes :)
--
Best regards,
Alexander Kuznetsov
qemuSnapshotDeleteBlockJobFinishing() returns only 0 and 1. Convert it
to bool and remove the dead code handling -1 return in the caller.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Reported-by: Andrey Slepykh
Signed-off-by: Alexander Kuznetsov
---
src/qemu
This function return value is invariant since 1022e0ee, so change
its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Alexander Rudyuk
Signed-off-by: Alexander Kuznetsov
---
src/conf/domain_conf.c | 9 +++--
src
This function return value is invariant since e59b8f9, so change
its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Signed-off-by: Artem Chernyshev
Signed-off-by: Alexander Kuznetsov
---
src/ch/ch_monitor.c| 5 +
src
: Alexander Kuznetsov
---
tools/nss/libvirt_nss.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tools/nss/libvirt_nss.c b/tools/nss/libvirt_nss.c
index d79a00a1b0..a1f33ee27b 100644
--- a/tools/nss/libvirt_nss.c
+++ b/tools/nss/libvirt_nss.c
@@ -137,12 +137,13 @@ findLease
v2:
- don't touch free() call inside LIBVIRT_NSS_GUEST macro
- rearrange asprintf to be called after realloc, so no extra free call is needed
Alexander Kuznetsov (1):
nss: Fix memory leak in findLease
tools/nss/libvirt_nss.c | 7 ---
1 file changed, 4 insertions(+), 3 dele
If virNWFilterDefToInst returns -1, it has already called virNWFilterInstReset.
Remove the additional call to prevent a double g_free
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Dmitry Fedin
Signed-off-by: Alexander Kuznetsov
---
src/nwfilter
v2:
- switch use g_clear_pointer instead of removing virNWFilterInstReset call
Alexander Kuznetsov (1):
nwfilter: Avoid possible double free in virNWFilterInstReset()
src/nwfilter/nwfilter_gentech_driver.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--
2.42.4
virNWFilterInstReset() may be called multiple times, leading to a double
g_free()
Replace plain g_free() with g_clear_pointer() to prevent this
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Dmitry Fedin
Signed-off-by: Alexander Kuznetsov
---
src/nwfilter
v2:
- switch to use STRNEQ_NULLABLE instead of simple nullness check
Alexander Kuznetsov (1):
virsh: prevent potential NULL dereference
tools/virsh-completer-domain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.42.4
virXPathString() can return NULL so we need to use STRNEQ_NULLABLE here
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Dmitry Fedin
Signed-off-by: Alexander Kuznetsov
---
tools/virsh-completer-domain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
Fedin
Signed-off-by: Alexander Kuznetsov
---
tools/nss/libvirt_nss.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tools/nss/libvirt_nss.c b/tools/nss/libvirt_nss.c
index d79a00a1b0..190cc7a3dd 100644
--- a/tools/nss/libvirt_nss.c
+++ b/tools/nss/libvirt_nss.c
@@ -141,8
kindly reminder about these cosmetics :)
virXPathString() can return NULL so we need to check it before calling strcmp()
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Dmitry Fedin
Signed-off-by: Alexander Kuznetsov
---
tools/virsh-completer-domain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion
Thanks for the review!
v2:
- remove check for source vlan being not NULL and fix wrongly changed statement
- remove pointless return at the end of the function
Alexander Kuznetsov (1):
util: netdevvlan: Change return type of virNetDevVlanCopy to void
src/conf/domain_conf.c | 9
This function return value is invariant since 1022e0ee, so change
its type and remove all dependent checks.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Reported-by: Alexander Rudyuk
Signed-off-by: Alexander Kuznetsov
---
src/conf/domain_conf.c | 9 +++--
src
40 matches
Mail list logo